Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Report problems of type java.lang.Error back to the nREPL client
Error inherits directly from Throwable, so Errors are not Exceptions, they need to be handled separately. This category includes RuntimeError, StackOverflowError, and NoClassDefFoundError. In regular applications you would not catch these, but in our case letting them bubble means the nREPL handler dies without returning a response, causing the client to assume that the operation is taking too long and time out, without any useful feedback. This is bad UX, and it makes it hard to diagnose and debug problems like clojure-emacs#184. At least this way the user will see a stack trace that hints at the problem.
- Loading branch information