summaryrefslogtreecommitdiffstats
path: root/pkg/gui/popup/popup_handler.go
diff options
context:
space:
mode:
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 f5a6eb8c6..1ca9cc3ee 100644
--- a/pkg/gui/popup/popup_handler.go
+++ b/pkg/gui/popup/popup_handler.go
@@ -80,12 +80,8 @@ func (self *PopupHandler) WithWaitingStatusSync(message string, f func() error)
}
func (self *PopupHandler) ErrorHandler(err error) error {
- return self.ErrorMsg(err.Error())
-}
-
-func (self *PopupHandler) ErrorMsg(message string) error {
// Need to set bold here explicitly; otherwise it gets cancelled by the red colouring.
- coloredMessage := style.FgRed.SetBold().Sprint(strings.TrimSpace(message))
+ coloredMessage := style.FgRed.SetBold().Sprint(strings.TrimSpace(err.Error()))
if err := self.onErrorFn(); err != nil {
return err
}