summaryrefslogtreecommitdiffstats
path: root/pkg/gui/popup/popup_handler.go
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2024-04-14 20:25:06 +0200
committerStefan Haller <stefan@haller-berlin.de>2024-04-18 10:10:30 +0200
commit723b92916d3b5a19de6c1d1673972dc4b241f5b7 (patch)
treed67270d8c4e484ceffcc2afc4e40fea13b436b12 /pkg/gui/popup/popup_handler.go
parent653994845ef9c1b7f47a9479ec70fd4cd64c5ab8 (diff)
Rename Error() to ErrorHandler()
It is now only used as the error handler that is passed to gocui.Gui on construction; it's not a client-facing API any more. Also, it doesn't have to handle gocui.ErrQuit, as gocui takes care of that.
Diffstat (limited to 'pkg/gui/popup/popup_handler.go')
-rw-r--r--pkg/gui/popup/popup_handler.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/pkg/gui/popup/popup_handler.go b/pkg/gui/popup/popup_handler.go
index c8ff10d85..f5a6eb8c6 100644
--- a/pkg/gui/popup/popup_handler.go
+++ b/pkg/gui/popup/popup_handler.go
@@ -79,11 +79,7 @@ func (self *PopupHandler) WithWaitingStatusSync(message string, f func() error)
return self.withWaitingStatusSyncFn(message, f)
}
-func (self *PopupHandler) Error(err error) error {
- if err == gocui.ErrQuit {
- return err
- }
-
+func (self *PopupHandler) ErrorHandler(err error) error {
return self.ErrorMsg(err.Error())
}