mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 22:46:27 +00:00
fix(gradle-version): only throw error for services.gradle.org
This commit is contained in:
parent
81dbc4d7be
commit
b53a7694df
1 changed files with 5 additions and 1 deletions
|
@ -53,8 +53,12 @@ export async function getPkgReleases({
|
|||
if (!(err.statusCode === 404 || err.code === 'ENOTFOUND')) {
|
||||
logger.warn({ err }, 'Gradle release lookup failure: Unknown error');
|
||||
}
|
||||
// istanbul ignore if
|
||||
if (err.host === 'services.gradle.org') {
|
||||
throw new DatasourceError(err);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue