diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-14 23:47:14 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-14 23:47:14 +1000 |
commit | ba2b6fbf1fa13ca5a72c18fba996bdd561d4899c (patch) | |
tree | 87e27e4455af7e2f885bcbdcd24c64a1cc77c6ab /pkg/gui/commit_message_panel.go | |
parent | 4d0702fba53c895d42b48a6abdb0aa26a1bbff8e (diff) |
pull errors out of package scope and store sentinel errors on the gui struct
Diffstat (limited to 'pkg/gui/commit_message_panel.go')
-rw-r--r-- | pkg/gui/commit_message_panel.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/commit_message_panel.go b/pkg/gui/commit_message_panel.go index 854732817..599c80186 100644 --- a/pkg/gui/commit_message_panel.go +++ b/pkg/gui/commit_message_panel.go @@ -12,13 +12,13 @@ func (gui *Gui) handleCommitConfirm(g *gocui.Gui, v *gocui.View) error { sub, err := gui.GitCommand.Commit(g, message) if err != nil { // TODO need to find a way to send through this error - if err != ErrSubProcess { + if err != gui.Errors.ErrSubProcess { return gui.createErrorPanel(g, err.Error()) } } if sub != nil { gui.SubProcess = sub - return ErrSubProcess + return gui.Errors.ErrSubProcess } gui.refreshFiles(g) v.Clear() |