From 209c19b9db5254da7d36f2ecc90b999f71528532 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Mon, 23 Feb 2015 16:17:56 +0100 Subject: [PATCH] feedback on command error --- CHANGELOG.md | 3 +++ lib/ex-state.coffee | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c3fff1e..f4f2706 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/lib/ex-state.coffee b/lib/ex-state.coffee index 40e2632..7aff344 100644 --- a/lib/ex-state.coffee +++ b/lib/ex-state.coffee @@ -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