mirror of
https://github.com/overte-org/overte.git
synced 2025-04-13 22:27:47 +02:00
add error handling and failure for packager script
This commit is contained in:
parent
5832884b58
commit
2dbeba3324
1 changed files with 7 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue