summary refs log tree commit diff stats
path: root/widgets
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-03-10 21:26:05 -0400
committerDrew DeVault <sir@cmpwn.com>2019-03-10 21:26:53 -0400
commit289e3b09ea20e911071e5a0f274445429502e934 (patch)
tree49c4222bdb034c77d8011d3186dfba3758bcfb5d /widgets
parentd394fd1f3b8625c7cc1c1f483f35d5b137a28c7c (diff)
downloadaerc-289e3b09ea20e911071e5a0f274445429502e934.tar.gz
Improve error reporting
Diffstat (limited to 'widgets')
-rw-r--r--widgets/account.go5
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