fix(utils): print log for exec_cmd failure (#982)

This commit is contained in:
Basix 2020-03-07 06:17:34 +09:00 committed by GitHub
parent b684d80aab
commit 8b4489768b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,7 +155,10 @@ fn internal_exec_cmd(cmd: &str, args: &[&str]) -> Option<CommandOutput> {
stderr: stderr_string,
})
}
Err(_) => None,
Err(error) => {
log::error!("Executing command {:?} failed by: {:?}", cmd, error);
None
}
}
}