You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ra...@apache.org on 2021/11/03 16:41:56 UTC

[cordova-ios] branch master updated: fix(bin/create): set failing exit code on failure (#1170)

This is an automated email from the ASF dual-hosted git repository.

raphinesse pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-ios.git


The following commit(s) were added to refs/heads/master by this push:
     new 106cf20  fix(bin/create): set failing exit code on failure (#1170)
106cf20 is described below

commit 106cf208c4054fa1491da15891f72fc42a930538
Author: Raphael von der GrĂ¼n <ra...@gmail.com>
AuthorDate: Wed Nov 3 17:41:51 2021 +0100

    fix(bin/create): set failing exit code on failure (#1170)
---
 bin/create | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/bin/create b/bin/create
index f656a5e..617257d 100755
--- a/bin/create
+++ b/bin/create
@@ -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);
+});

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org