mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-11-19 11:35:16 +00:00
refactor(custom): Add additional logging to the custom module (#1389)
This commit is contained in:
parent
c97f9aef98
commit
affae806fb
@ -103,7 +103,8 @@ fn shell_command(cmd: &str, shell_args: &[&str]) -> Option<Output> {
|
|||||||
|
|
||||||
let mut child = match command.spawn() {
|
let mut child = match command.spawn() {
|
||||||
Ok(command) => command,
|
Ok(command) => command,
|
||||||
Err(_) => {
|
Err(err) => {
|
||||||
|
log::trace!("Error executing command: {:?}", err);
|
||||||
log::debug!(
|
log::debug!(
|
||||||
"Could not launch command with given shell or STARSHIP_SHELL env variable, retrying with /bin/env sh"
|
"Could not launch command with given shell or STARSHIP_SHELL env variable, retrying with /bin/env sh"
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user