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

api: clean up errors #1174

Merged
merged 1 commit into from
Feb 16, 2022
Merged

api: clean up errors #1174

merged 1 commit into from
Feb 16, 2022

Conversation

camshaft
Copy link
Contributor

@camshaft camshaft commented Feb 16, 2022

I noticed that the error variants were non-exhaustive, which would prevent us from adding new fields. This change adds the non_exhaustive attribute and adds panic::Locations to each variant to make it easier for applications to debug why an error was encountered.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@camshaft camshaft marked this pull request as ready for review February 16, 2022 18:27
@camshaft camshaft merged commit a31cf0b into main Feb 16, 2022
@camshaft camshaft deleted the camshaft/api-error-cleanup branch February 16, 2022 20:34
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.

2 participants