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

Extract API error logic to helper #814

Merged
merged 1 commit into from
Feb 26, 2019
Merged

Extract API error logic to helper #814

merged 1 commit into from
Feb 26, 2019

Conversation

kytrinyx
Copy link
Member

The submit command handles API errors correctly.

We need to be able to share this logic so we can stop swallowing errors in other commands.

This adds a default error message that we can fall back to if the API doesn't return a message.

This change was made by @jdsutherland as part of #756.

The submit command handles API errors correctly. We need to be
able to share this logic so we can stop swallowing errors in
other commands.
@kytrinyx
Copy link
Member Author

I'm going to go ahead and merge this when the build goes green, so that we can use it in other PRs.

@kytrinyx kytrinyx merged commit b649e75 into master Feb 26, 2019
@kytrinyx kytrinyx deleted the decode-api-error branch February 26, 2019 22:24
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