mirror of https://github.com/logseq/logseq
Fix logging and error handling
parent
44bc0e8f40
commit
31032beadd
|
@ -180,8 +180,8 @@
|
|||
(gp-util/json->clj)
|
||||
(update-src-full-content content)
|
||||
(collect-page-properties parse-property config-state)))
|
||||
(catch js/Error e
|
||||
(js/console.error e)
|
||||
(catch :default e
|
||||
(log/error :unexpected-error e)
|
||||
[]))
|
||||
(log/error :edn/wrong-content-type content)))
|
||||
|
||||
|
@ -193,7 +193,7 @@
|
|||
(-> text
|
||||
(inline-parse-json config)
|
||||
(gp-util/json->clj)))
|
||||
(catch js/Error _e
|
||||
(catch :default _e
|
||||
[])))
|
||||
|
||||
(defn link?
|
||||
|
|
Loading…
Reference in New Issue