Fork me on GitHub
#mount
<
2018-10-23
>
richiardiandrea18:10:29

I have a weird thing going on, I have a:

(defstate ^{:doc "The system config"}
  map
  :start (s/assert* ::config (read-config)))

richiardiandrea18:10:03

when I do this it's all good:

(def err (try  (s/assert* ::config (read-config)) (catch :default e e)))
 (type err)
#object[Error]

richiardiandrea18:10:26

(def err (try  @map (catch :default e e)))
(type err)
#object[String]

richiardiandrea18:10:42

is mount converting the error to a string?

richiardiandrea18:10:52

no, something else is going on so sorry for the noise

tolitius18:10:45

@richiardiandrea yea, it should not convert errors to strings

richiardiandrea18:10:19

thank you yeah, probably a problem on my side