diff --git a/lib/config/presets.js b/lib/config/presets.js index 098d751c3d24157caf6be3272bec99f1a8f7416e..d5f4f733a6d5812b44ca58f45dd1eb765985922e 100644 --- a/lib/config/presets.js +++ b/lib/config/presets.js @@ -47,6 +47,13 @@ async function resolveConfigPresets( try { fetchedPreset = await getPreset(preset); } catch (err) { + // istanbul ignore if + if ( + err.message === 'platform-failure' || + err.message === 'registry-failure' + ) { + throw err; + } const error = new Error('config-validation'); if (err.message === 'dep not found') { error.validationError = `Cannot find preset's package (${preset})`; @@ -55,11 +62,6 @@ async function resolveConfigPresets( error.validationError = `Preset package is missing a renovate-config entry (${preset})`; } else if (err.message === 'preset not found') { error.validationError = `Preset name not found within published preset config (${preset})`; - } else { - /* istanbul ignore next */ // eslint-disable-next-line - if (err.message === 'registry-failure') { - throw err; - } } // istanbul ignore if if (existingPresets.length) {