diff options
Diffstat (limited to 'pkg/gui/reset_menu_panel.go')
-rw-r--r-- | pkg/gui/reset_menu_panel.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/reset_menu_panel.go b/pkg/gui/reset_menu_panel.go index 1c3dce5bf..1e101caad 100644 --- a/pkg/gui/reset_menu_panel.go +++ b/pkg/gui/reset_menu_panel.go @@ -9,7 +9,7 @@ import ( func (gui *Gui) resetToRef(ref string, strength string, options commands.RunCommandOptions) error { if err := gui.GitCommand.ResetToCommit(ref, strength, options); err != nil { - return gui.createErrorPanel(gui.g, err.Error()) + return gui.surfaceError(err) } if err := gui.switchCommitsPanelContext("branch-commits"); err != nil { |