diff --git a/term/src/terminalstate/performer.rs b/term/src/terminalstate/performer.rs index 11462a7d8..67e6cbd09 100644 --- a/term/src/terminalstate/performer.rs +++ b/term/src/terminalstate/performer.rs @@ -624,7 +624,7 @@ impl<'a> Performer<'a> { let selection = selection_to_selection(selection); match self.set_clipboard_contents(selection, Some(selection_data)) { Ok(_) => (), - Err(err) => error!("failed to set clipboard in response to OSC 52: {:?}", err), + Err(err) => error!("failed to set clipboard in response to OSC 52: {:#?}", err), } } OperatingSystemCommand::ITermProprietary(iterm) => match iterm { diff --git a/wezterm-mux-server-impl/src/sessionhandler.rs b/wezterm-mux-server-impl/src/sessionhandler.rs index 2e9179fc5..0e912e441 100644 --- a/wezterm-mux-server-impl/src/sessionhandler.rs +++ b/wezterm-mux-server-impl/src/sessionhandler.rs @@ -742,14 +742,16 @@ impl Clipboard for RemoteClipboard { selection: ClipboardSelection, clipboard: Option, ) -> anyhow::Result<()> { - self.sender.send(DecodedPdu { - serial: 0, - pdu: Pdu::SetClipboard(SetClipboard { - pane_id: self.pane_id, - clipboard, - selection, - }), - })?; + self.sender + .send(DecodedPdu { + serial: 0, + pdu: Pdu::SetClipboard(SetClipboard { + pane_id: self.pane_id, + clipboard, + selection, + }), + }) + .context("RemoteClipboard::set_contents send failed")?; Ok(()) } }