forked from loafle/openapi-generator-original
fixing error handler interceptor (#12761)
This commit is contained in:
parent
2f81e2d9e1
commit
97daba5c58
@ -181,7 +181,7 @@ export class BaseAPI {
|
||||
}) || response;
|
||||
}
|
||||
}
|
||||
if (response !== undefined) {
|
||||
if (response === undefined) {
|
||||
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
|
||||
}
|
||||
}
|
||||
|
@ -192,7 +192,7 @@ export class BaseAPI {
|
||||
}) || response;
|
||||
}
|
||||
}
|
||||
if (response !== undefined) {
|
||||
if (response === undefined) {
|
||||
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
|
||||
}
|
||||
}
|
||||
|
@ -192,7 +192,7 @@ export class BaseAPI {
|
||||
}) || response;
|
||||
}
|
||||
}
|
||||
if (response !== undefined) {
|
||||
if (response === undefined) {
|
||||
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
|
||||
}
|
||||
}
|
||||
|
@ -192,7 +192,7 @@ export class BaseAPI {
|
||||
}) || response;
|
||||
}
|
||||
}
|
||||
if (response !== undefined) {
|
||||
if (response === undefined) {
|
||||
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
|
||||
}
|
||||
}
|
||||
|
@ -192,7 +192,7 @@ export class BaseAPI {
|
||||
}) || response;
|
||||
}
|
||||
}
|
||||
if (response !== undefined) {
|
||||
if (response === undefined) {
|
||||
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
|
||||
}
|
||||
}
|
||||
|
@ -192,7 +192,7 @@ export class BaseAPI {
|
||||
}) || response;
|
||||
}
|
||||
}
|
||||
if (response !== undefined) {
|
||||
if (response === undefined) {
|
||||
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
|
||||
}
|
||||
}
|
||||
|
@ -192,7 +192,7 @@ export class BaseAPI {
|
||||
}) || response;
|
||||
}
|
||||
}
|
||||
if (response !== undefined) {
|
||||
if (response === undefined) {
|
||||
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
|
||||
}
|
||||
}
|
||||
|
@ -192,7 +192,7 @@ export class BaseAPI {
|
||||
}) || response;
|
||||
}
|
||||
}
|
||||
if (response !== undefined) {
|
||||
if (response === undefined) {
|
||||
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
|
||||
}
|
||||
}
|
||||
|
@ -192,7 +192,7 @@ export class BaseAPI {
|
||||
}) || response;
|
||||
}
|
||||
}
|
||||
if (response !== undefined) {
|
||||
if (response === undefined) {
|
||||
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
|
||||
}
|
||||
}
|
||||
|
@ -192,7 +192,7 @@ export class BaseAPI {
|
||||
}) || response;
|
||||
}
|
||||
}
|
||||
if (response !== undefined) {
|
||||
if (response === undefined) {
|
||||
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
|
||||
}
|
||||
}
|
||||
|
@ -192,7 +192,7 @@ export class BaseAPI {
|
||||
}) || response;
|
||||
}
|
||||
}
|
||||
if (response !== undefined) {
|
||||
if (response === undefined) {
|
||||
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
|
||||
}
|
||||
}
|
||||
|
@ -192,7 +192,7 @@ export class BaseAPI {
|
||||
}) || response;
|
||||
}
|
||||
}
|
||||
if (response !== undefined) {
|
||||
if (response === undefined) {
|
||||
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user