feedback on command error

This commit is contained in:
Loic Nageleisen 2015-02-23 16:17:56 +01:00
parent 1c574d84d4
commit 209c19b9db
2 changed files with 4 additions and 0 deletions

View file

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