Repository: cordova-lib Updated Branches: refs/heads/master 8cd2c9a60 -> d857645df
CB-10567 Bubble up `cordova.raw.run()` error to the caller Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/d857645d Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/d857645d Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/d857645d Branch: refs/heads/master Commit: d857645df5ce123f07beb25fb8f0f56443c9509e Parents: 8cd2c9a Author: Vladimir Kotikov <[email protected]> Authored: Tue Feb 9 15:43:33 2016 +0300 Committer: Vladimir Kotikov <[email protected]> Committed: Tue Feb 9 15:43:33 2016 +0300 ---------------------------------------------------------------------- cordova-lib/src/cordova/run.js | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d857645d/cordova-lib/src/cordova/run.js ---------------------------------------------------------------------- diff --git a/cordova-lib/src/cordova/run.js b/cordova-lib/src/cordova/run.js index 26e91d7..6c6e10d 100644 --- a/cordova-lib/src/cordova/run.js +++ b/cordova-lib/src/cordova/run.js @@ -45,5 +45,8 @@ module.exports = function run(options) { return hooksRunner.fire('after_run', options); }, function(error) { events.emit('log', 'ERROR running one or more of the platforms: ' + error + '\nYou may not have the required environment or OS to run this project'); + + // CB-10567 bubble up `run` error, so the caller still could get rejected promise + return Q.reject(error); }); }; --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
