We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53b2891 commit bd45364Copy full SHA for bd45364
src/cider/nrepl/middleware/debug.clj
@@ -601,9 +601,9 @@ this map (identified by a key), and will `dissoc` it afterwards."}
601
[form dbg-state original-form]
602
`(try ~form
603
(catch Throwable ex#
604
- (let [exn-message# (.getMessage ex#)
605
- break-result# (expand-break exn-message# ~dbg-state ~original-form)]
606
- (if (= exn-message# break-result#)
+ (let [~'STATE__ (assoc-in ~'STATE__ [:msg :caught-msg] (.getMessage ex#))
+ break-result# (expand-break ex# ~dbg-state ~original-form)]
+ (if (= ex# break-result#)
607
;; if they continued then rethrow the exception
608
(throw ex#)
609
;; otherwise return the value they injected
0 commit comments