mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-12-23 10:38:55 +00:00
cleaner error printing
This commit is contained in:
parent
923996f6ca
commit
fcc29035c8
3
cli.js
3
cli.js
@ -23,7 +23,8 @@ if (!args.dir || !args.name || !args.platform || !args.arch || !args.version) {
|
|||||||
|
|
||||||
packager(args, function done (err, appPath) {
|
packager(args, function done (err, appPath) {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.error(err, err.stack)
|
if (err.message) console.error(err.message)
|
||||||
|
else console.error(err, err.stack)
|
||||||
process.exit(1)
|
process.exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user