mount

richiardiandrea 2018-10-23T18:10:29.000100Z

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

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

richiardiandrea 2018-10-23T18:11:03.000100Z

when I do this it's all good:

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

richiardiandrea 2018-10-23T18:11:06.000100Z

but

richiardiandrea 2018-10-23T18:11:26.000100Z

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

richiardiandrea 2018-10-23T18:11:42.000100Z

is mount converting the error to a string?

richiardiandrea 2018-10-23T18:27:52.000100Z

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

tolitius 2018-10-23T18:33:45.000100Z

@richiardiandrea yea, it should not convert errors to strings

richiardiandrea 2018-10-23T18:44:19.000100Z

thank you yeah, probably a problem on my side