aerc

Working clone of aerc-mail.org
git clone git://git.danielmoch.com/aerc.git
Log | Files | Refs | README | LICENSE

commit 289e3b09ea20e911071e5a0f274445429502e934
parent d394fd1f3b8625c7cc1c1f483f35d5b137a28c7c
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sun, 10 Mar 2019 21:26:05 -0400

Improve error reporting

Diffstat:
Mwidgets/account.go | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git 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