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 = { ...@@ -90,13 +90,12 @@ type PackageJson = {
try { try {
const fileConfig = getFileConfig(process.env); const fileConfig = getFileConfig(process.env);
if (!equal(fileConfig, {})) { if (!equal(fileConfig, {})) {
logger.info( const file = process.env.RENOVATE_CONFIG_FILE ?? 'config.js';
`Validating ${process.env.RENOVATE_CONFIG_FILE ?? 'config.js'}` logger.info(`Validating ${file}`);
);
try { try {
await validate('config.js', fileConfig); await validate(file, fileConfig);
} catch (err) { } catch (err) {
logger.error({ err }, `config.js is not valid Renovate config`); logger.error({ err }, `${file} is not valid Renovate config`);
returnVal = 1; returnVal = 1;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment