forked from loafle/openapi-generator-original
fixing error handler interceptor (#12761)
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user