improve error message in case wezterm-gui cannot be run
refs: https://github.com/wez/wezterm/issues/2457
This commit is contained in:
1 parent
3c7b75a4f3
commit
ca8d3f3fee
1 file changed
+2
-1
+2
-1
@@ -567,7 +567,8 @@ fn delegate_to_gui(saver: UmaskSaver) -> anyhow::Result<()> {
|
||||
if std::env::var_os("APPIMAGE").is_none() {
|
||||
portable_pty::unix::close_random_fds();
|
||||
}
|
||||
return Err(anyhow::anyhow!("failed to exec: {:?}", cmd.exec()));
|
||||
let res = cmd.exec();
|
||||
return Err(anyhow::anyhow!("failed to exec {cmd:?}: {res:?}"));
|
||||
}
|
||||
|
||||
#[cfg(windows)]
|
||||
|
||||
Reference in new issue
Block a user