Skip to content

Commit

Permalink
fix(gradle-version): only throw error for services.gradle.org
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Feb 14, 2020
1 parent 81dbc4d commit b53a769
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/datasource/gradle-version/index.ts
Expand Up @@ -53,7 +53,11 @@ export async function getPkgReleases({
if (!(err.statusCode === 404 || err.code === 'ENOTFOUND')) {
logger.warn({ err }, 'Gradle release lookup failure: Unknown error');
}
throw new DatasourceError(err);
// istanbul ignore if
if (err.host === 'services.gradle.org') {
throw new DatasourceError(err);
}
return null;
}
})
);
Expand Down

0 comments on commit b53a769

Please sign in to comment.