diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2024-04-14 20:25:06 +0200 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2024-04-18 10:10:30 +0200 |
commit | 723b92916d3b5a19de6c1d1673972dc4b241f5b7 (patch) | |
tree | d67270d8c4e484ceffcc2afc4e40fea13b436b12 /pkg/gui/types | |
parent | 653994845ef9c1b7f47a9479ec70fd4cd64c5ab8 (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/types')
-rw-r--r-- | pkg/gui/types/common.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/gui/types/common.go b/pkg/gui/types/common.go index 6675668b0..3b959be56 100644 --- a/pkg/gui/types/common.go +++ b/pkg/gui/types/common.go @@ -135,7 +135,8 @@ type IPopupHandler interface { // // This is a convenience wrapper around Alert(). ErrorMsg(message string) error - Error(err error) error + // The global error handler for gocui. Not to be used by application code. + ErrorHandler(err error) error // Shows a notification popup with the given title and message to the user. // // This is a convenience wrapper around Confirm(), thus the popup can be closed using both 'Enter' and 'ESC'. |