diff --git a/.changeset/brown-cycles-laugh.md b/.changeset/brown-cycles-laugh.md new file mode 100644 index 000000000..00cb29ed0 --- /dev/null +++ b/.changeset/brown-cycles-laugh.md @@ -0,0 +1,5 @@ +--- +'@verdaccio/cli': patch +--- + +chore: improve error logger message diff --git a/packages/cli/src/commands/init.ts b/packages/cli/src/commands/init.ts index 4ae27a178..91c8a93ad 100644 --- a/packages/cli/src/commands/init.ts +++ b/packages/cli/src/commands/init.ts @@ -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) {