diff --git a/bin/create b/bin/create index f656a5e01b..b5c3da40a8 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.log(err); + process.exit(2); +});