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 Feb 20, 2018
1 parent dc93dd0 commit 3c07e02
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/cljs/snapshot/lumo/repl.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -595,15 +595,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/..)?"}))]
(println
opts))]
(print
(st/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 3c07e02

Please sign in to comment.