Skip to content

Commit

Permalink
Merge pull request #185 from plexus/catch-java-lang-error
Browse files Browse the repository at this point in the history
Report problems of type java.lang.Error back to the nREPL client
  • Loading branch information
expez authored Jan 22, 2017
2 parents 56a1c67 + 5728a39 commit df24f30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Bugs fixed

*
* [#185](https://github.com/clojure-emacs/refactor-nrepl/issues/185) Report throwables of type `Error` instead of swallowing them.
* [clojure-emacs/clj-refactor.el#330](https://github.com/clojure-emacs/clj-refactor.el/issues/332) `clean-ns` removes imported inner inner classes.
* [clojure-emacs/clj-refactor.el#330](https://github.com/clojure-emacs/clj-refactor.el/issues/330) `clean-ns` ignores namespaced keywords.
* [#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).
Expand Down
3 changes: 3 additions & 0 deletions src/refactor_nrepl/middleware.clj
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
(transport/send
~transport (response-for ~msg :error (.getMessage e#) :status :done)))
(catch Exception e#
(transport/send
~transport (response-for ~msg (err-info e# :refactor-nrepl-error))))
(catch Error e#
(transport/send
~transport (response-for ~msg (err-info e# :refactor-nrepl-error))))))

Expand Down

0 comments on commit df24f30

Please sign in to comment.