From a459a3606e411385f281661df509cf22e68bdf22 Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Sat, 6 Aug 2016 14:54:07 -0400 Subject: [PATCH] Exit with a nonzero status if we get an error This is especially important when mdbook is used with CI. --- src/bin/mdbook.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/mdbook.rs b/src/bin/mdbook.rs index 0b61b799..a77ac680 100644 --- a/src/bin/mdbook.rs +++ b/src/bin/mdbook.rs @@ -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); } }