From 2dbeba3324dea71c9eea7a606c868e6611967a62 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Thu, 14 Jan 2016 09:48:31 -0800 Subject: [PATCH] add error handling and failure for packager script --- console/packager.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/console/packager.js b/console/packager.js index 43a01f693e..7f52542fe2 100644 --- a/console/packager.js +++ b/console/packager.js @@ -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); + } });