Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add handling for atoms as error messages #12

Merged
merged 2 commits into from
May 22, 2020

Conversation

ACBullen
Copy link
Contributor

@ACBullen ACBullen commented Mar 2, 2020

In my experience, it's not uncommon for error tuples like {:error, :unauthorized} to be passed around in an application and since in a lot of cases that is a sufficiently explanatory message for the error, having this library take care of intercepting and stringifying those errors would be a nice-to-have that would be fairly easy to implement

or as lists by interpolating them into strings
Co-Authored-By: Samuel Garneau <sam@garno.me>
@ACBullen
Copy link
Contributor Author

It's been a while. Any idea whether or not this PR is worthwhile and merge-able? Anything I can do to improve it? Should it be shelved?

@remi
Copy link
Member

remi commented May 22, 2020

That looks good to me! Sorry about the delay 😬

@remi remi merged commit 62d532c into mirego:master May 22, 2020
@remi
Copy link
Member

remi commented May 22, 2020

@ACBullen I just published v1.1.3 on hex.pm.

Thank you!

@ACBullen
Copy link
Contributor Author

Thank you for maintaining the package! It's been super useful 😄

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

Successfully merging this pull request may close these issues.

None yet

3 participants