Skip to content
This repository has been archived by the owner on Mar 31, 2020. It is now read-only.

add jesse:error_to_json #38

Closed
Licenser opened this issue Nov 30, 2015 · 1 comment
Closed

add jesse:error_to_json #38

Licenser opened this issue Nov 30, 2015 · 1 comment

Comments

@Licenser
Copy link

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?

@richcarl
Copy link
Contributor

Closing. See for-GET/jesse#7

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants