Fix logging and error handling

pull/5265/head
Gabriel Horner 2022-05-10 20:35:31 -04:00
parent 44bc0e8f40
commit 31032beadd
1 changed files with 5 additions and 5 deletions

View File

@ -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?