Print to stderr

This commit is contained in:
Matthias Beyer 2018-02-06 19:28:27 +01:00
parent 85d1c632d3
commit 8cba4daf20

View file

@ -220,7 +220,7 @@ fn main() {
Ok(exit_status) => { Ok(exit_status) => {
if !exit_status.success() { if !exit_status.success() {
debug!("imag-{} exited with non-zero exit code: {:?}", subcommand, exit_status); debug!("imag-{} exited with non-zero exit code: {:?}", subcommand, exit_status);
println!("imag-{} exited with non-zero exit code", subcommand); eprintln!("imag-{} exited with non-zero exit code", subcommand);
exit(exit_status.code().unwrap_or(1)); exit(exit_status.code().unwrap_or(1));
} }
debug!("Successful exit!"); debug!("Successful exit!");