fixing error handler interceptor (#12761)

This commit is contained in:
Bogdan Ilchyshyn 2022-07-04 17:06:34 +10:00 committed by GitHub
parent 2f81e2d9e1
commit 97daba5c58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 12 additions and 12 deletions

View File

@ -181,7 +181,7 @@ export class BaseAPI {
}) || response; }) || response;
} }
} }
if (response !== undefined) { if (response === undefined) {
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response'); throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
} }
} }

View File

@ -192,7 +192,7 @@ export class BaseAPI {
}) || response; }) || response;
} }
} }
if (response !== undefined) { if (response === undefined) {
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response'); throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
} }
} }

View File

@ -192,7 +192,7 @@ export class BaseAPI {
}) || response; }) || response;
} }
} }
if (response !== undefined) { if (response === undefined) {
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response'); throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
} }
} }

View File

@ -192,7 +192,7 @@ export class BaseAPI {
}) || response; }) || response;
} }
} }
if (response !== undefined) { if (response === undefined) {
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response'); throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
} }
} }

View File

@ -192,7 +192,7 @@ export class BaseAPI {
}) || response; }) || response;
} }
} }
if (response !== undefined) { if (response === undefined) {
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response'); throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
} }
} }

View File

@ -192,7 +192,7 @@ export class BaseAPI {
}) || response; }) || response;
} }
} }
if (response !== undefined) { if (response === undefined) {
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response'); throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
} }
} }

View File

@ -192,7 +192,7 @@ export class BaseAPI {
}) || response; }) || response;
} }
} }
if (response !== undefined) { if (response === undefined) {
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response'); throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
} }
} }

View File

@ -192,7 +192,7 @@ export class BaseAPI {
}) || response; }) || response;
} }
} }
if (response !== undefined) { if (response === undefined) {
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response'); throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
} }
} }

View File

@ -192,7 +192,7 @@ export class BaseAPI {
}) || response; }) || response;
} }
} }
if (response !== undefined) { if (response === undefined) {
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response'); throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
} }
} }

View File

@ -192,7 +192,7 @@ export class BaseAPI {
}) || response; }) || response;
} }
} }
if (response !== undefined) { if (response === undefined) {
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response'); throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
} }
} }

View File

@ -192,7 +192,7 @@ export class BaseAPI {
}) || response; }) || response;
} }
} }
if (response !== undefined) { if (response === undefined) {
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response'); throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
} }
} }

View File

@ -192,7 +192,7 @@ export class BaseAPI {
}) || response; }) || response;
} }
} }
if (response !== undefined) { if (response === undefined) {
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response'); throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
} }
} }