mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-30 22:34:10 -05:00
chore: improve error logger message
This commit is contained in:
parent
966d9fad1d
commit
d78c8b5153
2 changed files with 8 additions and 1 deletions
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 {
|
try {
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
if (logConfig.logs) {
|
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);
|
setup(logConfig.log as LoggerConfigItem);
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
|
|
Loading…
Reference in a new issue