Skip to content
Snippets Groups Projects
Commit b74a491b authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix(helm): gracefully handle ETIMEDOUT

parent b0856544
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,11 @@ export async function getRepositoryData(
return null;
}
// istanbul ignore if
if (err.code === 'ENOTFOUND' || err.code === 'EAI_AGAIN') {
if (
err.code === 'ENOTFOUND' ||
err.code === 'EAI_AGAIN' ||
err.code === 'ETIMEDOUT'
) {
logger.debug({ err }, 'Could not connect to helm repository');
return null;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment