2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-12-23 02:28:55 +00:00

cleaner error printing

This commit is contained in:
Max Ogden 2015-05-11 12:11:40 -07:00
parent 923996f6ca
commit fcc29035c8

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)
}