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:
parent
966d9fad1d
commit
d78c8b5153
5
.changeset/brown-cycles-laugh.md
Normal file
5
.changeset/brown-cycles-laugh.md
Normal file
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user