Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix details missing in googleapiclient.errors.HttpError #412

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

Merged
merged 1 commit into from
Jul 17, 2017

Conversation

sonlac
Copy link
Contributor

@sonlac sonlac commented Jul 8, 2017

For instance, the googleapiclient.errors.HttpError returns only the message and the status code. Adding the error details on that would be useful and the error becomes slightly more verbose. In the response returned from the server, if the error body contains the details field, just show it together with the error message for more details. For example:

<HttpError 400 when requesting http://example.org returned "country is required". Details: "error details">

Resolves: #382

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 8, 2017
@theacodes
Copy link
Contributor

@sonlac thanks for sending this. I hate to be a bother, but could you update this to not change the indentation (or at least put the indentation change in its own commit)? It makes it extremely hard for me to review otherwise.

@theacodes theacodes self-assigned this Jul 13, 2017
@sonlac sonlac closed this Jul 14, 2017
@sonlac sonlac reopened this Jul 14, 2017
@sonlac
Copy link
Contributor Author

sonlac commented Jul 14, 2017

@jonparrott Sorry about that. I just tried to reformat code to PEP8 style. Thanks.

@theacodes theacodes merged commit f6e2661 into googleapis:master Jul 17, 2017
@theacodes
Copy link
Contributor

Thanks, @sonlac.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants