mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-14 06:42:35 +00:00
Merge pull request #161 from integer32llc/exit-status
Exit with a nonzero status if we get an error
This commit is contained in:
commit
9732a3bc7d
1 changed files with 1 additions and 0 deletions
|
@ -83,6 +83,7 @@ fn main() {
|
||||||
|
|
||||||
if let Err(e) = res {
|
if let Err(e) = res {
|
||||||
writeln!(&mut io::stderr(), "An error occured:\n{}", e).ok();
|
writeln!(&mut io::stderr(), "An error occured:\n{}", e).ok();
|
||||||
|
::std::process::exit(101);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue