diff --git a/lib/datasource/helm/index.ts b/lib/datasource/helm/index.ts index cd262dd5fa16d10bb6d48578095274cdb0341e1c..6fc18ec3375d872fc13f89174f433808f0c83165 100644 --- a/lib/datasource/helm/index.ts +++ b/lib/datasource/helm/index.ts @@ -21,6 +21,14 @@ export async function getRepositoryData( return null; } } catch (err) { + // istanbul ignore if + if (err.code === 'ERR_INVALID_URL') { + logger.info( + { helmRepository: repository }, + 'helm repository is not a valid URL - skipping' + ); + return null; + } // istanbul ignore if if (err.code === 'ENOTFOUND' || err.code === 'EAI_AGAIN') { logger.info({ err }, 'Could not connect to helm repository'); @@ -41,7 +49,10 @@ export async function getRepositoryData( logger.info({ repository }, 'Unsupported protocol'); return null; } - logger.warn({ err }, `${repository} lookup failure: Unknown error`); + logger.warn( + { err }, + `helm datasource ${repository} lookup failure: Unknown error` + ); return null; } try {