summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2023-03-01 20:12:41 +0100
committerGitHub <noreply@github.com>2023-03-01 20:12:41 +0100
commit91b94552b6410a0b8f78d6510cf82332fe703661 (patch)
treeb4da599b1c2c248d2a42fd543a89a8456c4e18ab
parentfd19174471dd4d0d8d7c036cee63b2ca46d55c5e (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
-rw-r--r--zellij-server/src/os_input_output.rs6
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