Selmer icon indicating copy to clipboard operation
Selmer copied to clipboard

switch to using ex-info for exceptions

Open yogthos opened this issue 12 years ago • 1 comments

Currently, the parser throws generic Exception on error, it would be better to use ex-info and set a specific type. This would allow making middleware for printing out friendly errors instead of the generic stack trace.

yogthos avatar Nov 13 '13 03:11 yogthos

It would also be good if we could set the exception cause to the underlying exception here: https://github.com/yogthos/Selmer/blob/master/src/selmer/filter_parser.clj#L120

djpowell avatar Nov 25 '14 17:11 djpowell