From 91b94552b6410a0b8f78d6510cf82332fe703661 Mon Sep 17 00:00:00 2001 From: Aram Drevekenin Date: Wed, 1 Mar 2023 20:12:41 +0100 Subject: [PATCH] fix(pty): do not crash when unable to set cwd (#2214) * fix(pty): do not crash when unable to set cwd * style(fmt): rustfmt --- zellij-server/src/os_input_output.rs | 6 ++---- 1 file 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