Skip to content

Commit a459a36

Browse files
committed
Exit with a nonzero status if we get an error
This is especially important when mdbook is used with CI.
1 parent 1e6bccd commit a459a36

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bin/mdbook.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ fn main() {
8383

8484
if let Err(e) = res {
8585
writeln!(&mut io::stderr(), "An error occured:\n{}", e).ok();
86+
::std::process::exit(101);
8687
}
8788
}
8889

0 commit comments

Comments
 (0)