Skip to content

Commit

Permalink
Handle missing errors from validate-npm-package-name; fix #283
Browse files Browse the repository at this point in the history
  • Loading branch information
SBoudrias committed Nov 17, 2019
1 parent e2b01b4 commit 3403ad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ module.exports = class extends Generator {
this.emit(
'error',
new Error(
packageNameValidity.errors[0] ||
_.get(packageNameValidity, 'errors.0') ||
'The name option is not a valid npm package name.'
)
);
Expand Down

0 comments on commit 3403ad4

Please sign in to comment.