cleaner error printing

This commit is contained in:
Max Ogden 2015-05-11 12:11:40 -07:00
parent 923996f6ca
commit fcc29035c8
1 changed files with 2 additions and 1 deletions

3
cli.js
View File

@ -23,7 +23,8 @@ if (!args.dir || !args.name || !args.platform || !args.arch || !args.version) {
packager(args, function done (err, appPath) {
if (err) {
console.error(err, err.stack)
if (err.message) console.error(err.message)
else console.error(err, err.stack)
process.exit(1)
}