summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/helpers/commits_helper.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/controllers/helpers/commits_helper.go')
-rw-r--r--pkg/gui/controllers/helpers/commits_helper.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/gui/controllers/helpers/commits_helper.go b/pkg/gui/controllers/helpers/commits_helper.go
index 8f8904808..6e1a181c7 100644
--- a/pkg/gui/controllers/helpers/commits_helper.go
+++ b/pkg/gui/controllers/helpers/commits_helper.go
@@ -1,6 +1,7 @@
package helpers
import (
+ "errors"
"path/filepath"
"strings"
"time"
@@ -167,7 +168,7 @@ func (self *CommitsHelper) HandleCommitConfirm() error {
summary, description := self.getCommitSummary(), self.getCommitDescription()
if summary == "" {
- return self.c.ErrorMsg(self.c.Tr.CommitWithoutMessageErr)
+ return errors.New(self.c.Tr.CommitWithoutMessageErr)
}
err := self.c.Contexts().CommitMessage.OnConfirm(summary, description)