Open jumblerg opened 7 years ago
this becomes problematic when, for example, we want to revert to a login or authentication view whenever the server returns a 404.
(defn initiate! [[view]]
(-> (get-user)
(.done #(change-state! :application))
(.fail #(when (= (.-status %) 404) (change-state! :authentication)))))
when
ex-data
is called on the the error at line 26, it returns only{:castra.core/exception true}
from the first exception in:via
instead of the:data
we're really interested in.https://github.com/hoplon/castra/blob/master/src/castra/middleware.clj#L26