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

refactor: log content before validation

parent 21a5af01
No related branches found
No related tags found
No related merge requests found
...@@ -47,12 +47,12 @@ async function validatePrs(config) { ...@@ -47,12 +47,12 @@ async function validatePrs(config) {
}); });
} }
if (parsed) { if (parsed) {
const { errors } = migrateAndValidate( const toValidate =
config,
file === 'package.json' file === 'package.json'
? parsed.renovate || parsed['renovate-config'] ? parsed.renovate || parsed['renovate-config']
: parsed : parsed;
); logger.debug({ config: toValidate }, 'Validating config');
const { errors } = migrateAndValidate(config, toValidate);
if (errors && errors.length) { if (errors && errors.length) {
validations = validations.concat( validations = validations.concat(
errors.map(error => ({ errors.map(error => ({
......
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