From 6c844bf1b67b74bc6cfd5c6a2b7c97320f208d31 Mon Sep 17 00:00:00 2001 From: James Laverack Date: Wed, 29 Nov 2023 15:06:49 +0000 Subject: [PATCH] Log error message on editor error --- editor/editor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/editor.go b/editor/editor.go index db0d61e..550ce7f 100644 --- a/editor/editor.go +++ b/editor/editor.go @@ -129,7 +129,7 @@ func (e Editor) Launch(path string) error { return fmt.Errorf("unable to launch the editor %q", strings.Join(e.Args, " ")) } } - return fmt.Errorf("there was a problem with the editor %q", strings.Join(e.Args, " ")) + return fmt.Errorf("there was a problem with the editor %q: %w", strings.Join(e.Args, " "), err) } return nil }