Improve error reporting

This commit is contained in:
Drew DeVault 2019-03-10 21:26:05 -04:00
parent d394fd1f3b
commit 289e3b09ea

View file

@ -114,9 +114,8 @@ func (acct *AccountView) Event(event tcell.Event) bool {
exline := NewExLine(func(command string) { exline := NewExLine(func(command string) {
err := acct.runCmd(command) err := acct.runCmd(command)
if err != nil { if err != nil {
acct.statusline.Push( acct.statusline.Push(" "+err.Error(), 10*time.Second).
fmt.Sprintf("Error: %v", err), 10*time.Second). Color(tcell.ColorRed, tcell.ColorWhite)
Color(tcell.ColorRed, tcell.ColorDefault)
} }
acct.statusbar.Pop() acct.statusbar.Pop()
acct.interactive = nil acct.interactive = nil