Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Revert "don't hide line number when compiler throws an exception duri…

…ng load-file"

The useless swank-generated CompilerException wrapper should be suppressed.

This reverts commit 4930cd2.
  • Loading branch information...
commit acb7b1c4e32ccac5b72e9d43289c3bd0e2803efa 1 parent 6cd728f
@technomancy technomancy authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/swank/core.clj
View
5 src/swank/core.clj
@@ -120,9 +120,6 @@
(doall coll)
coll))
-(defn compiler-exception? [ex]
- (= (class ex) clojure.lang.Compiler$CompilerException))
-
(defn eval-for-emacs [form buffer-package id]
(try
(binding [*current-package* buffer-package]
@@ -149,7 +146,7 @@
;; start sldb, don't bother here because you can't actually
;; recover with java
- (invoke-debugger (if (or (compiler-exception? t) *debug-swank-clojure*)
+ (invoke-debugger (if *debug-swank-clojure*
t
(.getCause t))
id)
Please sign in to comment.
Something went wrong with that request. Please try again.