Skip to content

Commit 2041a4c

Browse files
committed
Debug
1 parent d280df1 commit 2041a4c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/refactor_nrepl/analyzer.clj

+3
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@
120120
error? (instance? Throwable ast-or-err)
121121
debug (:debug config/*config*)]
122122

123+
(when (and error? (System/getenv "CI"))
124+
(.printStackTrace ^Throwable ast-or-err))
125+
123126
(cond
124127
(and error? debug)
125128
(throw ast-or-err)

test/refactor_nrepl/integration_tests.clj

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
[nrepl.server :as nrepl]
55
[refactor-nrepl.analyzer :as analyzer]
66
[refactor-nrepl.client :refer [connect find-unbound find-usages resolve-missing version]]
7+
[refactor-nrepl.config :as config]
78
[refactor-nrepl.core :as core]
89
[refactor-nrepl.middleware]))
910

@@ -21,8 +22,8 @@
2122

2223
(defn wrap-setup-once [f]
2324
(let [server (start-up-repl-server)]
24-
25-
(f)
25+
(binding [config/*config* (assoc config/*config* :debug true)]
26+
(f))
2627

2728
(stop-repl-server server)))
2829

0 commit comments

Comments
 (0)