Skip to content
Snippets Groups Projects
Unverified Commit e6d497a6 authored by Michael Kriese's avatar Michael Kriese Committed by GitHub
Browse files

fix(validator): wrong file name in logs (#8520)

parent e8c1b26d
No related branches found
No related tags found
No related merge requests found
......@@ -90,13 +90,12 @@ type PackageJson = {
try {
const fileConfig = getFileConfig(process.env);
if (!equal(fileConfig, {})) {
logger.info(
`Validating ${process.env.RENOVATE_CONFIG_FILE ?? 'config.js'}`
);
const file = process.env.RENOVATE_CONFIG_FILE ?? 'config.js';
logger.info(`Validating ${file}`);
try {
await validate('config.js', fileConfig);
await validate(file, fileConfig);
} catch (err) {
logger.error({ err }, `config.js is not valid Renovate config`);
logger.error({ err }, `${file} is not valid Renovate config`);
returnVal = 1;
}
}
......
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