fix: improve try/catch for mirrorMode config

This commit is contained in:
Rhys Arkins 2018-03-17 07:02:38 +01:00
parent ef26fdb3fe
commit 13609b735d

View file

@ -18,9 +18,13 @@ async function mergeRenovateConfig(config) {
);
logger.info('Found mirror config');
} catch (err) {
// Do nothing
}
if (!renovateJson) {
logger.debug('No mirror config found - using default config');
renovateJson = { extends: ['config:base'] };
}
logger.debug({ renovateJson }, 'mirrorMode config');
const migratedConfig = migrateAndValidate(config, renovateJson);
const resolvedConfig = await presets.resolveConfigPresets(migratedConfig);
returnConfig = mergeChildConfig(returnConfig, resolvedConfig);