1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-24 21:15:51 +01:00

chore: improve error logger message

This commit is contained in:
Juan Picado 2022-04-04 20:47:48 +02:00
parent 966d9fad1d
commit d78c8b5153
2 changed files with 8 additions and 1 deletions

@ -0,0 +1,5 @@
---
'@verdaccio/cli': patch
---
chore: improve error logger message

@ -49,7 +49,9 @@ export class InitCommand extends Command {
try {
// @ts-expect-error
if (logConfig.logs) {
throw Error('logger as array not longer supported');
throw Error(
'the property config "logs" property is longer supported, rename to "log" and use object instead'
);
}
setup(logConfig.log as LoggerConfigItem);
} catch (err: any) {