Skip to content

Commit

Permalink
fix(bin/create): set failing exit code on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
raphinesse committed Nov 1, 2021
1 parent 8028f69 commit 243fb5f
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.log(err);
process.exit(2);
});

0 comments on commit 243fb5f

Please sign in to comment.