Skip to content

Commit

Permalink
chore: typo (#1131)
Browse files Browse the repository at this point in the history
Co-authored-by: xt01102058 <xt01102058@alibaba-inc.com>
  • Loading branch information
taotao7 and xt01102058 authored Jul 26, 2022
1 parent e6cdfe5 commit 014ecba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/browser/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ proto.requestError = async function requestError(result) {
err.code = 'PreconditionFailed';
} else {
err = new Error(`Unknow error, status: ${result.status}`);
err.name = 'UnknowError';
err.name = 'UnknownError';
err.status = result.status;
}
err.requestId = result.headers['x-oss-request-id'];
Expand All @@ -389,7 +389,7 @@ proto.requestError = async function requestError(result) {
msg += ` (condition: ${info.Condition})`;
}
err = new Error(msg);
err.name = info.Code ? `${info.Code}Error` : 'UnknowError';
err.name = info.Code ? `${info.Code}Error` : 'UnknownError';
err.status = result.status;
err.code = info.Code;
err.requestId = info.RequestId;
Expand Down
4 changes: 2 additions & 2 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ proto.requestError = async function requestError(result) {
err.code = 'PreconditionFailed';
} else {
err = new Error(`Unknow error, status: ${result.status}`);
err.name = 'UnknowError';
err.name = 'UnknownError';
err.status = result.status;
}
err.requestId = result.headers['x-oss-request-id'];
Expand All @@ -370,7 +370,7 @@ proto.requestError = async function requestError(result) {
msg += ` (condition: ${info.Condition})`;
}
err = new Error(msg);
err.name = info.Code ? `${info.Code}Error` : 'UnknowError';
err.name = info.Code ? `${info.Code}Error` : 'UnknownError';
err.status = result.status;
err.code = info.Code;
err.requestId = info.RequestId;
Expand Down

0 comments on commit 014ecba

Please sign in to comment.