diff --git a/lib/config/presets/index.ts b/lib/config/presets/index.ts index 38ebddb94e08c97be3fd8e209bedeb7f1496d86d..5c51bb4b2b20a1e7a93a3d2d65a124a732f4b676 100644 --- a/lib/config/presets/index.ts +++ b/lib/config/presets/index.ts @@ -1,5 +1,8 @@ import is from '@sindresorhus/is'; -import { CONFIG_VALIDATION } from '../../constants/error-messages'; +import { + CONFIG_VALIDATION, + PLATFORM_RATE_LIMIT_EXCEEDED, +} from '../../constants/error-messages'; import { logger } from '../../logger'; import { ExternalHostError } from '../../types/errors/external-host-error'; import { regEx } from '../../util/regex'; @@ -207,6 +210,10 @@ export async function resolveConfigPresets( if (err instanceof ExternalHostError) { throw err; } + // istanbul ignore if + if (err.message === PLATFORM_RATE_LIMIT_EXCEEDED) { + throw err; + } const error = new Error(CONFIG_VALIDATION); if (err.message === 'dep not found') { error.validationError = `Cannot find preset's package (${preset})`;