I have some code that looks something like this:
promiseObject.then(
function(data) {console.log('Success')},
function(err) {console.log('Error')}
).catch(
function(err) {
console.log('Error')
})
If the promiseObject does not resolve the intention is to log 'Error'.
Am I right in thinking that the catch method is an alternative to having a reject handler? So that in this example the first log of 'Error' is redundant?