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

feat: request error add params info #18

Merged
merged 2 commits into from
Aug 22, 2015
Merged

feat: request error add params info #18

merged 2 commits into from
Aug 22, 2015

Conversation

dead-horse
Copy link
Member

No description provided.

@@ -236,7 +236,8 @@ proto.request = function* (params) {
var result = yield urllib.requestThunk(reqParams.url, reqParams.params);
debug('response %s %s, got %s, headers: %j', params.method, reqParams.url, result.status, result.headers);
if (params.successStatuses && params.successStatuses.indexOf(result.status) === -1) {
throw yield* this.requestError(result);
var err = yield* this.requestError(result);
err.params = params;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

throw err

@fengmk2
Copy link
Member

fengmk2 commented Aug 22, 2015

+1

fengmk2 added a commit that referenced this pull request Aug 22, 2015
feat: request error add params info
@fengmk2 fengmk2 merged commit 3f6e8bd into master Aug 22, 2015
@fengmk2 fengmk2 deleted the error-params branch August 22, 2015 05:50
@fengmk2
Copy link
Member

fengmk2 commented Aug 22, 2015

ali-oss@2.5.0

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

Successfully merging this pull request may close these issues.

2 participants