From 09a3a2a44a48c266ba80d4f8080dce2fa8945ceb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raphael=20von=20der=20Gr=C3=BCn?= Date: Wed, 3 Nov 2021 17:41:51 +0100 Subject: [PATCH] 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 f656a5e01..617257d35 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); +});