klarna/jesse

add jesse:error_to_json

Licenser opened this issue · 1 comments

Hi, I was thinking it'd be really nice to have a pre-build function that formats the erlang error into a json error to return to the sender.

It probably can be done easily in the application using jesse but it seems such a common thing that I feel like it could be included directly?

-spec error_to_json([jesse:error()]) -> binary().
%% ...

something like that?

Closing. See for-GET/jesse#7