Skip to content
Snippets Groups Projects
Unverified Commit afbf0b80 authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

fix(azure): more external error catches for presets (#24078)

parent 29da8396
No related branches found
No related tags found
No related merge requests found
...@@ -166,6 +166,12 @@ export async function getRawFile( ...@@ -166,6 +166,12 @@ export async function getRawFile(
); );
throw new ExternalHostError(err, id); throw new ExternalHostError(err, id);
} }
if (err.code === 'ECONNRESET' || err.code === 'ETIMEDOUT') {
throw new ExternalHostError(err, id);
}
if (err.statusCode && err.statusCode >= 500 && err.statusCode < 600) {
throw new ExternalHostError(err, id);
}
throw err; throw err;
} }
} }
......
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