Skip to content

Commit e61a71a

Browse files
authored
Merge pull request #156 from clj-commons/hls/20250917-bridge
Re-implement io.aviso.repl/pretty-print-stack-trace
2 parents e134603 + 626743f commit e61a71a

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 3.6.5 -- UNRELEASED
2+
3+
Add a missing bridge function to io.aviso.repl, `pretty-print-exception`.
4+
5+
[Closed Issues](https://github.com/clj-commons/pretty/milestone/64?closed=1)
6+
17
## 3.6.4 -- 5 Sep 2025
28

39
* The default layout for tables has been tightened up

src/io/aviso/repl.clj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,10 @@
1313
(defn uncaught-exception-handler
1414
[]
1515
(repl/uncaught-exception-handler))
16+
17+
(defn pretty-print-stack-trace
18+
"Replacement for `clojure.stacktrace/print-stack-trace` and `print-cause-trace`. These functions are used by `clojure.test`."
19+
([tr] (repl/pretty-print-stack-trace tr))
20+
([tr n]
21+
(println)
22+
(repl/pretty-print-stack-trace tr n)))

0 commit comments

Comments
 (0)