Skip to content

Commit 9608ce7

Browse files
alexander-yakushevbbatsov
authored andcommitted
[inspect] Show placeholder if the exception doesn't have a message
1 parent c38c5bd commit 9608ce7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/orchard/inspect.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@
708708

709709
(defn- render-stacktrace-cause [inspector ^Throwable cause]
710710
(as-> inspector ins
711-
(render-indent ins (.getMessage cause))
711+
(render-indent ins (or (.getMessage cause) "(No message)"))
712712
(render-ln ins)
713713
(render-indent ins)
714714
(render-value ins (class cause))

0 commit comments

Comments
 (0)