Improve error reporting
This commit is contained in:
parent
d394fd1f3b
commit
289e3b09ea
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue