-
Notifications
You must be signed in to change notification settings - Fork 48
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
Do not swallow error response #54
Conversation
@@ -118,7 +118,7 @@ impl BlockingClient { | |||
|
|||
match resp { | |||
Ok(resp) => Ok(resp.into_json()?), | |||
Err(ureq::Error::Status(code, _)) => Err(Error::HttpResponse(code)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to keep this as Error::HttpResponse
but augment the error variant with a message: '&static str
or similar field, which should also be filled in the the async
/reqwest
counterpart.
7e9b436
to
bb150e1
Compare
8843adf
to
bf11848
Compare
bf11848
to
3502ba4
Compare
3502ba4
to
c4f53ae
Compare
@remix75 , @tnull and @notmandatory this is ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK with one suggestion for cont_integration.yml
. Also be sure to do a final cargo fmt
.
cargo update -p log --precise 0.4.18 && | ||
cargo update -p rustls:0.21.5 --precise 0.21.1 && | ||
cargo update -p time:0.3.15 --precise 0.3.13 && | ||
cargo update -p hyper-rustls:0.24.1 --precise 0.24.0 && | ||
cargo update -p tempfile:3.7.0 --precise 3.6.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The &&
aren't needed when put on new lines like this.
cargo update -p log --precise 0.4.18 && | |
cargo update -p rustls:0.21.5 --precise 0.21.1 && | |
cargo update -p time:0.3.15 --precise 0.3.13 && | |
cargo update -p hyper-rustls:0.24.1 --precise 0.24.0 && | |
cargo update -p tempfile:3.7.0 --precise 3.6.0 | |
cargo update -p log --precise 0.4.18 | |
cargo update -p rustls:0.21.5 --precise 0.21.1 | |
cargo update -p time:0.3.15 --precise 0.3.13 | |
cargo update -p hyper-rustls:0.24.1 --precise 0.24.0 | |
cargo update -p tempfile:3.7.0 --precise 3.6.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good from a first pass!
Can we add some test fixtures of the error case on both (blocking/async) sides to check we're parsing the error responses correctly?
I'm going to close this, the requested changes have been implemented in #58. |
Pull Request Test Coverage Report for Build 5534983433Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
Pull Request Test Coverage Report for Build 5619546090Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
quick fix for issue #47