diff options
author | Bozhidar Batsov <bozhidar@batsov.com> | 2018-07-24 20:54:06 +0300 |
---|---|---|
committer | Bozhidar Batsov <bozhidar@batsov.com> | 2018-07-24 20:54:06 +0300 |
commit | 63b4fcac4da76ec8f2b44539e6c8c7095e1b3227 (patch) | |
tree | 04644544967ba1d753225ffe14955d89ff4a65bf /nrepl-client.el | |
parent | 0d70afd89ae040afe308aa08b3bb803cd0b04640 (diff) |
[Fix #1980] Echo back missing namespace name on interactive eval
Note that this requires nREPL 0.4.3+.
See
https://github.com/nrepl/nREPL/commit/e77945a70f68989f69e955eef9e6cbe75cedacf4
for the related nREPL change.
Diffstat (limited to 'nrepl-client.el')
-rw-r--r-- | nrepl-client.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nrepl-client.el b/nrepl-client.el index a73f200b..4f15b59e 100644 --- a/nrepl-client.el +++ b/nrepl-client.el @@ -815,7 +815,10 @@ the corresponding type of response." (when (member "eval-error" status) (funcall (or eval-error-handler nrepl-err-handler))) (when (member "namespace-not-found" status) - (message "Namespace not found.")) + ;; nREPL 0.4.3 started echoing back the name of the missing ns + (if ns + (message "Namespace `%s' not found." ns) + (message "Namespace not found."))) (when (member "need-input" status) (cider-need-input buffer)) (when (member "done" status) |