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

Improve error handling in client #214

Closed
wants to merge 1 commit into from
Closed

Improve error handling in client #214

wants to merge 1 commit into from

Conversation

lubomir
Copy link
Member

@lubomir lubomir commented Nov 13, 2015

When network request fails, the error printing is more robust. Ideally,
the error response should be JSON encoded. In that case it will be
pretty printed.

If JSON parsing or pretty printing fails, user is prompted to file a
bug. The response data is logged only if it was valid JSON, as the only
case of non-JSON responses is a huge HTML dump.

The error is now consistently printed to stderr.

JIRA: PDC-1193

When network request fails, the error printing is more robust. Ideally,
the error response should be JSON encoded. In that case it will be
pretty printed.

If JSON parsing or pretty printing fails, user is prompted to file a
bug. The response data is logged only if it was valid JSON, as the only
case of non-JSON responses is a huge HTML dump.

The error is now consistently printed to stderr.

JIRA: PDC-1193
@erichuanggit
Copy link
Collaborator

Looks good to me.

@xychu
Copy link
Contributor

xychu commented Nov 16, 2015

Good news is that pdc-client repo is ready,
bad news is that this pull request is not included, sorry for the inconvenience.
Please create it again against the new repo.

@lubomir
Copy link
Member Author

lubomir commented Nov 18, 2015

Opened as product-definition-center/pdc-client#5

@lubomir lubomir closed this Nov 18, 2015
@lubomir lubomir deleted the pdc-1193 branch November 18, 2015 07:46
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.

None yet

3 participants