diff --git a/src/modules/custom.rs b/src/modules/custom.rs index df5a324e..7f79d267 100644 --- a/src/modules/custom.rs +++ b/src/modules/custom.rs @@ -103,7 +103,8 @@ fn shell_command(cmd: &str, shell_args: &[&str]) -> Option { 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" );