diff options
author | Aram Drevekenin <aram@poor.dev> | 2023-03-01 20:12:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-01 20:12:41 +0100 |
commit | 91b94552b6410a0b8f78d6510cf82332fe703661 (patch) | |
tree | b4da599b1c2c248d2a42fd543a89a8456c4e18ab /zellij-server | |
parent | fd19174471dd4d0d8d7c036cee63b2ca46d55c5e (diff) |
fix(pty): do not crash when unable to set cwd (#2214)
* fix(pty): do not crash when unable to set cwd
* style(fmt): rustfmt
Diffstat (limited to 'zellij-server')
-rw-r--r-- | zellij-server/src/os_input_output.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/zellij-server/src/os_input_output.rs b/zellij-server/src/os_input_output.rs index 873451dea..3c84d98af 100644 --- a/zellij-server/src/os_input_output.rs +++ b/zellij-server/src/os_input_output.rs @@ -174,12 +174,10 @@ fn handle_openpty( if current_dir.exists() && current_dir.is_dir() { command.current_dir(current_dir); } else { - // TODO: propagate this to the user - return Err(anyhow!( + log::error!( "Failed to set CWD for new pane. '{}' does not exist or is not a folder", current_dir.display() - )) - .context("failed to open PTY"); + ); } } command |