diff options
author | Thomas O'Donnell <andytom@users.noreply.github.com> | 2020-06-26 17:30:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-26 11:30:11 -0400 |
commit | affae806fb443d63f88982429b0f750e628f2d4c (patch) | |
tree | b8deab039e0dec19415b4de0df877a144893afd9 | |
parent | c97f9aef982d8cbc54e4c28eb8e3e2d25fe48136 (diff) |
refactor(custom): Add additional logging to the custom module (#1389)
-rw-r--r-- | src/modules/custom.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/custom.rs b/src/modules/custom.rs index df5a324e8..7f79d2674 100644 --- a/src/modules/custom.rs +++ b/src/modules/custom.rs @@ -103,7 +103,8 @@ fn shell_command(cmd: &str, shell_args: &[&str]) -> Option<Output> { let mut child = match command.spawn() { Ok(command) => command, - Err(_) => { + Err(err) => { + log::trace!("Error executing command: {:?}", err); log::debug!( "Could not launch command with given shell or STARSHIP_SHELL env variable, retrying with /bin/env sh" ); |