Skip to content

Commit a1d1368

Browse files
committed
fixup! Improve validation error messages
1 parent 1d2131a commit a1d1368

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/commands/publish.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ export const publish = async (argv: string[]) => {
6868
const chalk = (await import("chalk")).default;
6969
invalidItemMessages.forEach((msg) => {
7070
msg.errors.forEach((err) => {
71-
let text = chalk.red.bold(`${msg.name}: `);
72-
text += chalk.red(err);
73-
console.error(text);
71+
const errorName = chalk.red.bold(msg.name + ":");
72+
const errorDescription = chalk.red(err);
73+
console.error(`${errorName} ${errorDescription}`);
7474
});
7575
});
7676

0 commit comments

Comments
 (0)