diff options
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/msgviewer.go | 2 | ||||
-rw-r--r-- | widgets/terminal.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go index d5d1d279..126bf85b 100644 --- a/widgets/msgviewer.go +++ b/widgets/msgviewer.go @@ -667,7 +667,7 @@ func (pv *PartViewer) attemptCopy() { // if it's binary we have to rely on the filter to be sane _, err := io.Copy(pv.sink, pv.source) if err != nil { - logging.Warnf("failed to copy: %w", err) + logging.Warnf("failed to copy: %v", err) } } pv.sink.Close() diff --git a/widgets/terminal.go b/widgets/terminal.go index 894bdf09..b854a288 100644 --- a/widgets/terminal.go +++ b/widgets/terminal.go @@ -84,7 +84,7 @@ func (term *Terminal) Draw(ctx *ui.Context) { term.vterm.Watch(term) attr := &syscall.SysProcAttr{Setsid: true, Setctty: true, Ctty: 1} if err := term.vterm.StartWithAttrs(term.cmd, attr); err != nil { - logging.Errorf("error running terminal: %w", err) + logging.Errorf("error running terminal: %v", err) term.Close(err) return } |