mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
enhance(dev): import cli and tests print original error's ex-data
This commit is contained in:
4
deps/graph-parser/script/db_import.cljs
vendored
4
deps/graph-parser/script/db_import.cljs
vendored
@@ -51,7 +51,9 @@
|
||||
(defn- notify-user [{:keys [continue debug]} m]
|
||||
(println (:msg m))
|
||||
(when (:ex-data m)
|
||||
(println "Ex-data:" (pr-str (dissoc (:ex-data m) :error)))
|
||||
(println "Ex-data:" (pr-str (merge (dissoc (:ex-data m) :error)
|
||||
(when-let [err (get-in m [:ex-data :error])]
|
||||
{:original-error (ex-data (.-cause err))}))))
|
||||
(println "Stacktrace:")
|
||||
(if-let [stack (some-> (get-in m [:ex-data :error]) ex-data :sci.impl/callstack deref)]
|
||||
(println (string/join
|
||||
|
||||
Reference in New Issue
Block a user