mirror of
https://github.com/rust-lang/mdBook
synced 2025-01-18 23:44:02 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue