diff --git a/bin/templates/scripts/cordova/Api.js b/bin/templates/scripts/cordova/Api.js index 4f85f3241..e45b7822c 100644 --- a/bin/templates/scripts/cordova/Api.js +++ b/bin/templates/scripts/cordova/Api.js @@ -136,7 +136,7 @@ Api.createPlatform = function (destination, config, options, events) { }); } catch (e) { events.emit('error', 'createPlatform is not callable from the iOS project API.'); - throw (e); + throw e; } return result; }; @@ -170,7 +170,7 @@ Api.updatePlatform = function (destination, options, events) { }); } catch (e) { events.emit('error', 'updatePlatform is not callable from the iOS project API, you will need to do this manually.'); - throw (e); + throw e; } return result; }; diff --git a/bin/templates/scripts/cordova/lib/Podfile.js b/bin/templates/scripts/cordova/lib/Podfile.js index 2953e18b4..7106ff663 100644 --- a/bin/templates/scripts/cordova/lib/Podfile.js +++ b/bin/templates/scripts/cordova/lib/Podfile.js @@ -418,9 +418,6 @@ Podfile.prototype.install = function (requirementsCheckerFunction) { }) .then(function () { // done events.emit('verbose', '==== pod install end ====\n'); - }) - .fail(function (error) { - throw error; }); };