Fork me on GitHub
#pedestal
<
2016-06-21
>
ikitommi19:06:04

Hi. Pedestal interceptors seem to merge the original exception keys with the interceptor extra data in https://github.com/pedestal/pedestal/blob/master/interceptor/src/io/pedestal/interceptor/chain.clj#L34-L39. Could it hold the original ex-data under :data or something so the original data could be retrieved later? Also, having a custom ex-info with keys like :stage will mess up the exception handling.

ikitommi20:06:24

ah, the original exception can be fetched with (-> ex ex-data :exception), but custom keys can still clash with the pedestal ones.