improve error message in case wezterm-gui cannot be run

refs: https://github.com/wez/wezterm/issues/2457
This commit is contained in:
Wez Furlong committed 2022-08-27 15:58:14 -07:00
1 parent 3c7b75a4f3
commit ca8d3f3fee
1 file changed
+2 -1
+2 -1
View File
@@ -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)]