Exit with a nonzero status if we get an error
This is especially important when mdbook is used with CI.
This commit is contained in:
parent
1e6bccd924
commit
a459a3606e
|
@ -83,6 +83,7 @@ fn main() {
|
|||
|
||||
if let Err(e) = res {
|
||||
writeln!(&mut io::stderr(), "An error occured:\n{}", e).ok();
|
||||
::std::process::exit(101);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue