This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-21
Channels
- # announcements (1)
- # aws-lambda (62)
- # babashka (116)
- # beginners (67)
- # chlorine-clover (39)
- # cider (10)
- # cljs-dev (5)
- # clojure (30)
- # clojure-austin (2)
- # clojure-europe (2)
- # clojure-italy (6)
- # clojure-nl (24)
- # clojure-uk (28)
- # clojurescript (33)
- # data-science (6)
- # datascript (10)
- # datomic (5)
- # duct (39)
- # emacs (1)
- # events (8)
- # fulcro (9)
- # graalvm (29)
- # hoplon (7)
- # juxt (10)
- # malli (4)
- # off-topic (6)
- # pathom (10)
- # perun (1)
- # reagent (45)
- # shadow-cljs (5)
- # sql (14)
- # tools-deps (10)
- # xtdb (9)
Do you have ready solution to share for :com.wsscode.pathom.core/errors
as EDN data instead of string?
Hello folks, I would like to give more visibility around the work I do on Pathom and also on the rest of my open-source work. To improve this situation I've been working on a knowledge base for all my work, the idea is to use this so I can quickly add information and link related things, so you will see data around Pathom, around EQL, all linked and easy for me to update (meaning that will encourage me to update more often). On top of a knowledge base, this also works as journaling, so if you want to see the most recent stuff that I'm working on or thinking of, that's also a great place to check that! And finally, here is the link for this knowledge base: https://roamresearch.com/#/app/wsscode/page/WWmdSMHKY I would love to hear what you think about this format, any suggestions are welcome. Cheers!
Pinned it to the channel
Thansks for sharing Wilker
::p/process-error (fn [env error]
(let [data (ex-data error)]
(if (= :validation (:code data))
(do (l/debug error)
(update data :cause (partial keep spec-problems->errors)))
(do (l/error error)
{:type :error
:code :unknown
:cause "Unknown exception. The exception is logged and will be fixed."}))))
So far I have this if somebody is interested in.
Finally I got conclusion I have to use exceptions to return any validation issue in pathom and it works well so far.