From affae806fb443d63f88982429b0f750e628f2d4c Mon Sep 17 00:00:00 2001 From: Thomas O'Donnell Date: Fri, 26 Jun 2020 17:30:11 +0200 Subject: [PATCH] refactor(custom): Add additional logging to the custom module (#1389) --- src/modules/custom.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" );