feedback on command error
This commit is contained in:
parent
1c574d84d4
commit
209c19b9db
2 changed files with 4 additions and 0 deletions
|
|
@ -49,6 +49,7 @@ class ExState
|
|||
@history.unshift command
|
||||
catch e
|
||||
if (e instanceof CommandError)
|
||||
atom.notifications.addError("Command error: #{e.message}")
|
||||
@emitter.emit('failed-to-execute')
|
||||
else
|
||||
throw e
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue