From 289e3b09ea20e911071e5a0f274445429502e934 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 10 Mar 2019 21:26:05 -0400 Subject: Improve error reporting --- widgets/account.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/widgets/account.go b/widgets/account.go index be1e068..c5545ef 100644 --- a/widgets/account.go +++ b/widgets/account.go @@ -114,9 +114,8 @@ func (acct *AccountView) Event(event tcell.Event) bool { exline := NewExLine(func(command string) { err := acct.runCmd(command) if err != nil { - acct.statusline.Push( - fmt.Sprintf("Error: %v", err), 10*time.Second). - Color(tcell.ColorRed, tcell.ColorDefault) + acct.statusline.Push(" "+err.Error(), 10*time.Second). + Color(tcell.ColorRed, tcell.ColorWhite) } acct.statusbar.Pop() acct.interactive = nil -- cgit 1.4.1-2-gfad0