Improve error reporting

This commit is contained in:
Drew DeVault 2019-03-10 21:26:05 -04:00
parent d394fd1f3b
commit 289e3b09ea
1 changed files with 2 additions and 3 deletions

View File

@ -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