fix(helm): gracefully handle ETIMEDOUT

This commit is contained in:
Rhys Arkins 2020-06-03 12:29:11 +02:00
parent b085654493
commit b74a491b4f

View file

@ -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;
}