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

Support error_code returned by specific API endpoints #577

Merged
merged 1 commit into from
Jul 18, 2020

Conversation

rspeicher
Copy link
Contributor

An error response may contain useful additional context, and this allows
users to access that context on the exception class.

For example, the cherry-pick API now includes an error_code field to
indicate why the cherry-pick failed, which can now be accessed via
ResponseError#error_code.

This is a second attempt at #530, without abusing method_missing.

An error response may contain useful additional context, and this allows
users to access that context on the exception class.

For example, the cherry-pick API now includes an error_code field to
indicate why the cherry-pick failed, which can now be accessed via
`ResponseError#error_code`.
@NARKOZ NARKOZ merged commit 4cbee0c into NARKOZ:master Jul 18, 2020
@rspeicher
Copy link
Contributor Author

@NARKOZ At your convenience, could we please get a new gem release to include this and #579 (among others)? 💜

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