Skip to content
Snippets Groups Projects
Unverified Commit d71b1ec9 authored by Michael Kriese's avatar Michael Kriese Committed by GitHub
Browse files

fix: rethrow ExternalHostError error (#10761)

parent c3f78d6a
No related branches found
No related tags found
No related merge requests found
...@@ -37,6 +37,10 @@ export abstract class Datasource implements DatasourceApi { ...@@ -37,6 +37,10 @@ export abstract class Datasource implements DatasourceApi {
handleSpecificErrors(err: HttpError): void {} handleSpecificErrors(err: HttpError): void {}
protected handleGenericErrors(err: HttpError): never { protected handleGenericErrors(err: HttpError): never {
// istanbul ignore if: not easy testable with nock
if (err instanceof ExternalHostError) {
throw err;
}
this.handleSpecificErrors(err); this.handleSpecificErrors(err);
if (err.response?.statusCode !== undefined) { if (err.response?.statusCode !== undefined) {
if ( if (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment