diff options
author | Bohdan Ivashko <20084245+arriven@users.noreply.github.com> | 2022-10-07 12:04:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-07 09:04:08 +0000 |
commit | 39f33a9a9a47bd7e22bff4c1ec3a0a1456ca30e8 (patch) | |
tree | e9748725333be40d4ec88606c254b2c35deafcf6 /zellij-server/src/tab | |
parent | bc04983f060132bdc107ea2326411d329ee7dc6b (diff) |
zellij-server: improve thread_bus error handling (#1775)
* zellij-server: improve thread_bus error handling
* zellij-server/thread_bus: get rid of option.unwrap
* zellij-utils/errors.rs: generic error in to_anyhow
Diffstat (limited to 'zellij-server/src/tab')
-rw-r--r-- | zellij-server/src/tab/mod.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/zellij-server/src/tab/mod.rs b/zellij-server/src/tab/mod.rs index 7a3554df2..d80256aa8 100644 --- a/zellij-server/src/tab/mod.rs +++ b/zellij-server/src/tab/mod.rs @@ -497,7 +497,6 @@ impl Tab { let pane_title = run.location.to_string(); self.senders .send_to_plugin(PluginInstruction::Load(pid_tx, run, tab_index, client_id)) - .to_anyhow() .with_context(err_context)?; let pid = pid_rx.recv().with_context(err_context)?; let mut new_plugin = PluginPane::new( @@ -588,7 +587,6 @@ impl Tab { Some(*client_id), Event::ModeUpdate(mode_info.clone()), )) - .to_anyhow() .with_context(|| { format!( "failed to update plugins with mode info {:?}", @@ -1169,7 +1167,6 @@ impl Tab { for key in parse_keys(&input_bytes) { self.senders .send_to_plugin(PluginInstruction::Update(Some(pid), None, Event::Key(key))) - .to_anyhow() .with_context(err_context)?; } }, @@ -2390,7 +2387,6 @@ impl Tab { None, Event::CopyToClipboard(self.clipboard_provider.as_copy_destination()), )) - .to_anyhow() .with_context(|| { format!("failed to inform plugins about copy selection for client {client_id}") }) @@ -2424,7 +2420,6 @@ impl Tab { }; self.senders .send_to_plugin(PluginInstruction::Update(None, None, clipboard_event)) - .to_anyhow() .context("failed to notify plugins about new clipboard event") .non_fatal(); @@ -2466,7 +2461,6 @@ impl Tab { None, Event::Visible(visible), )) - .to_anyhow() .with_context(|| format!("failed to set visibility of tab to {visible}"))?; } Ok(()) |