fix(bundler): Return nonzero exit code when errors occur (#233)

* fix(bundler): Return nonzero exit code when errors occur

* fix(bundler): Always exit with exit code 1 when calling print_error
This commit is contained in:
Rajiv Shah
2019-12-26 05:32:48 -05:00
committed by nothingismagick
parent f800daaf44
commit 65f1bf96ef

View File

@@ -225,7 +225,7 @@ pub fn print_error(error: &crate::Error) -> crate::Result<()> {
writeln!(output, "{:?}", backtrace)?;
}
output.flush()?;
Ok(())
std::process::exit(1)
} else {
let mut output = io::stderr();
write!(output, "error:")?;
@@ -237,7 +237,7 @@ pub fn print_error(error: &crate::Error) -> crate::Result<()> {
writeln!(output, "{:?}", backtrace)?;
}
output.flush()?;
Ok(())
std::process::exit(1)
}
}