summaryrefslogtreecommitdiffstats
path: root/src/utils.rs
diff options
context:
space:
mode:
authorBasix <basix@basix.tech>2020-03-07 06:17:34 +0900
committerGitHub <noreply@github.com>2020-03-06 16:17:34 -0500
commit8b4489768bdd4dfe49c86fc7782a65f072459200 (patch)
tree5f9946d2967f8c50f9cc036510c7a5004c984449 /src/utils.rs
parentb684d80aab11ce20b1901a5addddc182685f0554 (diff)
fix(utils): print log for exec_cmd failure (#982)
Diffstat (limited to 'src/utils.rs')
-rw-r--r--src/utils.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/utils.rs b/src/utils.rs
index 5e29400aa..aa85881b7 100644
--- a/src/utils.rs
+++ b/src/utils.rs
@@ -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
+ }
}
}