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/src/os_input_output.rs | |
| parent | docs(changelog): query tab names cli action (diff) | |
| download | sl0ppij-91b94552b6410a0b8f78d6510cf82332fe703661.tar.gz sl0ppij-91b94552b6410a0b8f78d6510cf82332fe703661.tar.xz sl0ppij-91b94552b6410a0b8f78d6510cf82332fe703661.zip | |
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/src/os_input_output.rs')
| -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 873451de..3c84d98a 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 |
