Skip to content
This repository has been archived by the owner on Jul 21, 2021. It is now read-only.

Handle Multi() errors correctly. #134

Merged
merged 1 commit into from
Aug 26, 2016
Merged

Handle Multi() errors correctly. #134

merged 1 commit into from
Aug 26, 2016

Conversation

nomis52
Copy link
Contributor

@nomis52 nomis52 commented Jul 31, 2016

Previously the code wasn't correctly unpacking error responses for Multi()
calls. If any operation within the Multi() call failed, we'd return
ErrAPIError.

This patch extracts the error code from each multiResponseOp, allowing
the caller to determine which specific operation failed. The error code from
the first op to fail is used as the return error for the Multi() call.

Previously the code wasn't correctly unpacking error responses for Multi()
calls. If any operation within the Multi() call failed, we'd return
ErrAPIError.

This patch extracts the error code from each multiResponseOp, allowing
the caller to determine which specific operation failed. The error code from
the first op to fail is used as the return error for the Multi() call.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 80.672% when pulling 7ecf500 on nomis52:multi-fix into e64db45 on samuel:master.

@nomis52
Copy link
Contributor Author

nomis52 commented Jul 31, 2016

This obsoletes #77

@samuel
Copy link
Owner

samuel commented Aug 26, 2016

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants