summaryrefslogtreecommitdiffstats
path: root/pkg/gui/staging_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-03-28 11:47:54 +1100
committerJesse Duffield <jessedduffield@gmail.com>2020-03-28 11:59:45 +1100
commit814ee24c8d13ae554925530ec68f325394ddfe6d (patch)
treed4713ad9927e84ad043b640165d132fcc6113dca /pkg/gui/staging_panel.go
parent7876cddf4a8390e9d22631e9be036c75b05f418c (diff)
better error handling
Diffstat (limited to 'pkg/gui/staging_panel.go')
-rw-r--r--pkg/gui/staging_panel.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/staging_panel.go b/pkg/gui/staging_panel.go
index 77afcda86..1074dfbc1 100644
--- a/pkg/gui/staging_panel.go
+++ b/pkg/gui/staging_panel.go
@@ -144,7 +144,7 @@ func (gui *Gui) applySelection(reverse bool) error {
}
err = gui.GitCommand.ApplyPatch(patch, applyFlags...)
if err != nil {
- return gui.createErrorPanel(gui.g, err.Error())
+ return gui.surfaceError(err)
}
if state.SelectMode == RANGE {