Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Commit

Permalink
Use the same opts for parsing AND mapping stack traces
Browse files Browse the repository at this point in the history
  • Loading branch information
arichiardi committed Apr 3, 2018
1 parent 922c4d5 commit 3dd2561
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/cljs/snapshot/lumo/repl.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -599,15 +599,17 @@
#_(when-let [data (and print-ex-data? (ex-data error))]
(print-value data {::as-code? false}))
(when stacktrace?
(let [canonical-stacktrace (->> (st/parse-stacktrace
(let [opts {:output-dir "file://(/goog/..)?"}
canonical-stacktrace (->> (st/parse-stacktrace
{}
(.-stack error)
{:ua-product :nodejs}
{:output-dir "file://(/goog/..)?"}))]
opts))]
(print
(mapped-stacktrace-str
canonical-stacktrace
(or (:source-maps @st) {})))))
(or (:source-maps @st) {})
opts))))
(when-let [cause (.-cause error)]
(recur cause stacktrace? message)))))))

Expand Down

0 comments on commit 3dd2561

Please sign in to comment.