Merge pull request #1251 from matthiasbeyer/imag-error-output

`imag`: Print proper imag command
This commit is contained in:
Matthias Beyer 2018-02-06 20:43:29 +01:00 committed by GitHub
commit 8006edb806
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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