Skip to content

Commit df24f30

Browse files
authored
Merge pull request #185 from plexus/catch-java-lang-error
Report problems of type java.lang.Error back to the nREPL client
2 parents 56a1c67 + 5728a39 commit df24f30

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Bugs fixed
66

77
*
8+
* [#185](https://github.com/clojure-emacs/refactor-nrepl/issues/185) Report throwables of type `Error` instead of swallowing them.
89
* [clojure-emacs/clj-refactor.el#330](https://github.com/clojure-emacs/clj-refactor.el/issues/332) `clean-ns` removes imported inner inner classes.
910
* [clojure-emacs/clj-refactor.el#330](https://github.com/clojure-emacs/clj-refactor.el/issues/330) `clean-ns` ignores namespaced keywords.
1011
* [#160](https://github.com/clojure-emacs/refactor-nrepl/issues/160) Make `resolve-missing` find newly defined vars and types (clj). Because of a stale cache, newly added vars or types would not be found. This fix takes into account vars/types added by eval-ing code (rescan affected namespace), and by hotloading dependencies (reset the cache).

src/refactor_nrepl/middleware.clj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
(transport/send
3737
~transport (response-for ~msg :error (.getMessage e#) :status :done)))
3838
(catch Exception e#
39+
(transport/send
40+
~transport (response-for ~msg (err-info e# :refactor-nrepl-error))))
41+
(catch Error e#
3942
(transport/send
4043
~transport (response-for ~msg (err-info e# :refactor-nrepl-error))))))
4144

0 commit comments

Comments
 (0)