diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-03-10 21:26:05 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-03-10 21:26:53 -0400 |
commit | 289e3b09ea20e911071e5a0f274445429502e934 (patch) | |
tree | 49c4222bdb034c77d8011d3186dfba3758bcfb5d | |
parent | d394fd1f3b8625c7cc1c1f483f35d5b137a28c7c (diff) |
Improve error reporting
-rw-r--r-- | widgets/account.go | 5 |
1 files 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 |