Skip to content

Commit

Permalink
Log error message on editor error
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesLaverack committed Nov 29, 2023
1 parent 441a2c4 commit 6c844bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/editor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 6c844bf

Please sign in to comment.