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) {
|
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
|
||||||
|
|
Loading…
Reference in a new issue