Skip to content

Commit

Permalink
fix: display project name validation warnings (#2769)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonYeager authored and sodatea committed Nov 26, 2018
1 parent 4324afb commit 42c51c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/@vue/cli/lib/create.js
Expand Up @@ -22,7 +22,10 @@ async function create (projectName, options) {
if (!result.validForNewPackages) {
console.error(chalk.red(`Invalid project name: "${name}"`))
result.errors && result.errors.forEach(err => {
console.error(chalk.red(err))
console.error(chalk.red.dim('Error: ' + err))
})
result.warnings && result.warnings.forEach(warn => {
console.error(chalk.red.dim('Warning: ' + warn))
})
exit(1)
}
Expand Down

0 comments on commit 42c51c0

Please sign in to comment.