feedback on command error
This commit is contained in:
parent
1c574d84d4
commit
209c19b9db
2 changed files with 4 additions and 0 deletions
|
|
@ -1,3 +1,6 @@
|
|||
## next - C-C-C-Combo Edition
|
||||
* Alert on unknown command
|
||||
|
||||
## 0.3.0 - Extrovert Edition
|
||||
* Register new commands from the outside world
|
||||
* Added `:tabn`, `:tabp`, `:e`, `:enew`, and a few aliases
|
||||
|
|
|
|||
|
|
@ -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