Skip to content
Snippets Groups Projects
Commit 13609b73 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix: improve try/catch for mirrorMode config

parent ef26fdb3
No related branches found
No related tags found
No related merge requests found
...@@ -18,9 +18,13 @@ async function mergeRenovateConfig(config) { ...@@ -18,9 +18,13 @@ async function mergeRenovateConfig(config) {
); );
logger.info('Found mirror config'); logger.info('Found mirror config');
} catch (err) { } catch (err) {
// Do nothing
}
if (!renovateJson) {
logger.debug('No mirror config found - using default config'); logger.debug('No mirror config found - using default config');
renovateJson = { extends: ['config:base'] }; renovateJson = { extends: ['config:base'] };
} }
logger.debug({ renovateJson }, 'mirrorMode config');
const migratedConfig = migrateAndValidate(config, renovateJson); const migratedConfig = migrateAndValidate(config, renovateJson);
const resolvedConfig = await presets.resolveConfigPresets(migratedConfig); const resolvedConfig = await presets.resolveConfigPresets(migratedConfig);
returnConfig = mergeChildConfig(returnConfig, resolvedConfig); returnConfig = mergeChildConfig(returnConfig, resolvedConfig);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment