add error handling and failure for packager script

This commit is contained in:
Stephen Birarda 2016-01-14 09:48:31 -08:00
parent 5832884b58
commit 2dbeba3324

View file

@ -47,6 +47,11 @@ if (argv.out) {
}
// call the packager to produce the executable
packager(options, function(error, appPath){
console.log("Wrote new app to " + appPath);
packager(options, function(error, appPath) {
if (error) {
console.error("There was an error writing the packaged console: " + error.message);
process.exit(1);
} else {
console.log("Wrote new app to " + appPath);
}
});