Skip to content

Commit

Permalink
[#296 #295] Fix Nodejs stacktraces (@nenadalm)
Browse files Browse the repository at this point in the history
  • Loading branch information
nenadalm authored and ptaoussanis committed May 5, 2020
1 parent daaecc6 commit ae89149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/taoensso/timbre.cljx
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@
(defn stacktrace
([err ] (stacktrace err nil))
([err opts]
#+cljs (str err) ; TODO Alternatives?
#+cljs (or (.-stack err) (str err)) ; TODO Alternatives?
#+clj
(let [stacktrace-fonts ; {:stacktrace-fonts nil->{}}
(if-let [e (find opts :stacktrace-fonts)]
Expand Down

0 comments on commit ae89149

Please sign in to comment.