Permalink
Browse files

Merge pull request #127 from samaaron/master

Handle ClassNotFoundExceptions wrapped in RuntimeExceptions when resolving namespaces
  • Loading branch information...
2 parents e804fda + 18eb9b9 commit 08972e8723e082b1eddb94cef6231847c7026eb4 @technomancy committed May 12, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/swank/commands/basic.clj
@@ -210,7 +210,9 @@
(try
(ns-resolve (maybe-ns *current-package*) (symbol symbol-name))
(catch ClassNotFoundException e nil)
- (catch RuntimeException e nil)))
+ (catch RuntimeException e (if (instance? ClassNotFoundException (.getCause e))
+ nil
+ (throw e)))))
(defn- maybe-resolve-ns
"Returns a Namespace or nil"

0 comments on commit 08972e8

Please sign in to comment.