diff options
author | Kristijan Husak <husakkristijan@gmail.com> | 2018-10-08 22:19:42 +0200 |
---|---|---|
committer | Kristijan Husak <husakkristijan@gmail.com> | 2018-10-08 22:19:42 +0200 |
commit | 4287f8ae905237abf3de181461255406c6d0b51d (patch) | |
tree | aab5bee3d464089603a8117a1206b79933f8e8f7 /pkg/gui | |
parent | 190309e5c1c939b4de5c366b31dea265e78cb4f3 (diff) |
Fix tests and add test scenarios for amend.
Diffstat (limited to 'pkg/gui')
-rw-r--r-- | pkg/gui/files_panel.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/files_panel.go b/pkg/gui/files_panel.go index 19d7b9342..a00bd2843 100644 --- a/pkg/gui/files_panel.go +++ b/pkg/gui/files_panel.go @@ -226,7 +226,7 @@ func (gui *Gui) handleAmendCommitPress(g *gocui.Gui, filesView *gocui.View) erro lastCommitMsg := gui.State.Commits[0].Name _, err := gui.GitCommand.Commit(lastCommitMsg, true) if err != nil { - gui.createErrorPanel(g, err.Error()) + return gui.createErrorPanel(g, err.Error()) } return gui.refreshSidePanels(g) |