fulcrologic / fulcro

A library for development of single-page full-stack web applications in clj/cljs
http://fulcro.fulcrologic.com
MIT License
1.54k stars 137 forks source link

Rm unnecessary, wrongly typed arg to ana/error #510

Closed holyjak closed 2 years ago

holyjak commented 2 years ago

This causes

ClassCastException: class clojure.lang.PersistentArrayMap cannot be cast to class java.lang.Throwable

instead of the expected

Encountered error when macroexpanding com.fulcrologic.fulcro.routing.dynamic-routing/defrouter. defrouter options are invalid: {:router-targetsXXX [Main]}

The 3rd argument to ana/error should be the cause, i.e. a Throwable.