Skip to content

Commit

Permalink
fix(bin/create): set failing exit code on failure (apache#1170)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphinesse authored and tiagoappereira committed Dec 12, 2022
1 parent b381baa commit 09a3a2a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/create
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,7 @@ var options = {

require('./templates/scripts/cordova/loggingHelper').adjustLoggerLevel(argv);

Api.createPlatform(projectPath, config, options);
Api.createPlatform(projectPath, config, options).catch(err => {
console.error(err);
process.exit(2);
});

0 comments on commit 09a3a2a

Please sign in to comment.