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:
Carol (Nichols || Goulding) 2016-08-06 14:54:07 -04:00
parent 1e6bccd924
commit a459a3606e
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}
}