Skip to content

Commit

Permalink
fix(helm): gracefully handle ETIMEDOUT
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Jun 3, 2020
1 parent b085654 commit b74a491
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/datasource/helm/index.ts
Expand Up @@ -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;
}
Expand Down

0 comments on commit b74a491

Please sign in to comment.