Skip to content

Commit

Permalink
Use placeholder current-var if not found
Browse files Browse the repository at this point in the history
  • Loading branch information
julienvincent committed Aug 5, 2024
1 parent 7494d94 commit 6377cff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/k16/forge/runner.clj
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@
(try
(test/test-ns test-ns)
(catch Exception ex
(let [current-var @*current-test-var*]
(let [current-var @*current-test-var*
current-var (if current-var
current-var
(symbol (str test-ns "/" "unknown")))]
(swap! *reports* update current-var
(fn [reports]
(conj reports {:type :fail
Expand Down

0 comments on commit 6377cff

Please sign in to comment.