2012/9/7 Murtaza Husain <[email protected]>
> I have noticed that moustache swallows any errors, is there a way so that
> any errors bubble up ?
>
I'm not sure what you mean, in my experiences exceptions thrown by handlers
always bubble up.
in this example
(defn route-handler [req]
(throw (clojure.lang.ExceptionInfo. "Error")))
(def server-handler
(app
["route"] route-handler))
the exception would hit ring, when visiting /route, as it should.
Can you post an example showing the erratic behavior?
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en