So I have this code:
aPromise
.then(function(result2){return aFailingPromise;}, function(error) {...})
.then(function(result1){return newPromise;}, function(error) {/*Catch failure, do backup things and go back to correct track*/})
.then(function(result3){return promise;}, function(error) {...});
When a failure occurs, every error method that I pass into the promise chain gets called and does not go back to the 'success' track. How can I do this? One of my promises has a possible backup plan, that I want to execute in the error method and perform the rest of the successes.