diff options
author | 哇呜哇呜呀咦耶 <pingao777@gmail.com> | 2022-10-28 22:15:16 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-28 14:15:16 +0000 |
commit | c5b1eb0a9e9e3e1f8bec55fa028def15b581d763 (patch) | |
tree | 0b00bb0e860ae401067a26a6c2bf6cad3c8ac6af /zellij-server/src/pty.rs | |
parent | 668df6bbd70be014a74dbb6e62c8d7cad7fd9bb9 (diff) |
improve error handling in ui module (#1870)
* improve error handling in ui module
* resolve problems in the review
Diffstat (limited to 'zellij-server/src/pty.rs')
-rw-r--r-- | zellij-server/src/pty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zellij-server/src/pty.rs b/zellij-server/src/pty.rs index 5e72f8282..03f87fd7a 100644 --- a/zellij-server/src/pty.rs +++ b/zellij-server/src/pty.rs @@ -452,7 +452,7 @@ impl Pty { .bus .os_input .as_mut() - .unwrap() + .ok_or_else(|| SpawnTerminalError::GenericSpawnError("os input is none"))? .spawn_terminal(terminal_action, quit_cb, self.default_editor.clone())?; let terminal_bytes = task::spawn({ let err_context = || format!("failed to run async task for terminal {terminal_id}"); |