mirror of https://github.com/tauri-apps/tauri
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:
parent
f800daaf44
commit
65f1bf96ef
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue