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 gazben committed Aug 26, 2022
1 parent c93d7e7 commit 627c484
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 627c484

Please sign in to comment.