mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +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,7 +53,11 @@ export async function getPkgReleases({
|
||||||
if (!(err.statusCode === 404 || err.code === 'ENOTFOUND')) {
|
if (!(err.statusCode === 404 || err.code === 'ENOTFOUND')) {
|
||||||
logger.warn({ err }, 'Gradle release lookup failure: Unknown error');
|
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;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue