зеркало из https://github.com/Azure/ms-rest-js.git
Fix err condition
This commit is contained in:
Родитель
24c37c409a
Коммит
b01d419316
|
@ -121,7 +121,7 @@ function retry(policy: SystemErrorRetryPolicy, request: WebResource, operationRe
|
|||
.then(res => retry(policy, request, res, retryData, err))
|
||||
.catch(err => retry(policy, request, operationResponse, retryData, err));
|
||||
} else {
|
||||
if (err == undefined) {
|
||||
if (err != undefined) {
|
||||
// If the operation failed in the end, return all errors instead of just the last one
|
||||
err = retryData.error;
|
||||
return Promise.reject(err);
|
||||
|
|
Загрузка…
Ссылка в новой задаче