angular-restmod
angular-restmod copied to clipboard
$asPromise().catch() gets wrong callback parameter value
In code
...
.$asPromise()
.then(function(data){...})
.catch(function(err){...})
the err
parameter is a data instance instead of Error object.
The same problem is with the error callback passed to then
But you can access the Error object inside that data instance, right?