changes undefined process.exit(code) to process.exit(9)

This commit is contained in:
Todd Baur 2017-03-08 19:29:19 +09:00
parent 71121cdc4b
commit 70868de81b
1 changed files with 2 additions and 1 deletions

View File

@ -33,10 +33,11 @@ Cmd.prototype.newApp = function() {
.description('new application')
.action(function(name, options) {
if (name === undefined) {
console.log("please specify your app Name".red);
console.log("e.g embark new MyApp".green);
console.log("e.g embark new --help for more information".green);
process.exit(code);
process.exit(9);
}
self.Embark.generateTemplate('boilerplate', './', name);
});