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

Handle structs explicitly when adding error type #37

Merged

Conversation

cararemixed
Copy link
Contributor

We want to avoid assuming that all errors reasons are either nil or structs. This rearranges the clauses and uses pattern matching to handle the struct case, allowing us to handle anything else like we handled the nil case before.

We want to avoid assuming that all errors reasons are either nil
or structs. This rearranges the clauses and uses pattern matching
to handle the struct case, allowing us to handle anything else
like we handled the nil case before.
@vovayartsev
Copy link

Running github: "cararemixed/spandex_datadog", branch: "fix-non-struct-error-metadata" in production for 1 month - so far so good.

Would really love to see the PR merged 👍

@GregMefford
Copy link
Member

Excellent, thanks so much for taking the time to submit a PR for this, @cararemixed and also @vovayartsev for confirming that it's working well! 🚀

@GregMefford GregMefford merged commit 4a85d52 into spandex-project:master Sep 25, 2021
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.

4 participants