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

Treat non-200 responses as errors in CLI #43

Merged
merged 1 commit into from
Jan 15, 2016
Merged

Conversation

jhunt
Copy link
Contributor

@jhunt jhunt commented Jan 15, 2016

  • If there is JSON, try to decode it, but return an error anyway.
  • If there is no JSON, return the error
  • In the front-end, display those errors

Execute() and Invoke() got merged, because the second return val from
Execute() was pointless (bool ok - I found the command!), and once that
was removed, the funcs were identical.

- If there is JSON, try to decode it, but return an error anyway.
- If there is no JSON, return the error
- In the front-end, display those errors

Execute() and Invoke() got merged, because the second return val from
Execute() was pointless (bool ok - I found the command!), and once that
was removed, the funcs were identical.
quintessence pushed a commit that referenced this pull request Jan 15, 2016
Treat non-200 responses as errors in CLI
@quintessence quintessence merged commit a8e30c1 into master Jan 15, 2016
@jhunt jhunt deleted the cli-http-errors branch January 18, 2016 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants