mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-30 22:34:13 +00:00
environment: Log stderr too if command fails to run (#20659)
Release Notes: - N/A
This commit is contained in:
parent
35798212c4
commit
776cfe44d7
1 changed files with 6 additions and 1 deletions
|
@ -312,7 +312,12 @@ async fn load_shell_environment(
|
|||
|
||||
let stdout = String::from_utf8_lossy(&output.stdout);
|
||||
let Some(env_output_start) = stdout.find(marker) else {
|
||||
log::error!("failed to parse output of `env` command in login shell: {stdout}");
|
||||
let stderr = String::from_utf8_lossy(&output.stderr);
|
||||
log::error!(
|
||||
"failed to parse output of `env` command in login shell. stdout: {:?}, stderr: {:?}",
|
||||
stdout,
|
||||
stderr
|
||||
);
|
||||
return message("Failed to parse stdout of env command. See logs for the output");
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue