Merge pull request #16414 from MiladNazeri/serverConsoleFix

Server console fix
This commit is contained in:
Shannon Romano 2019-10-28 10:46:27 -07:00 committed by GitHub
commit 316bdc83ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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