My code is like this,
app.controller('myController', function($scope, MyService, ...) {
MyService.getInfoFromUrl('MyUrl').then(function(result) {
console.log("Successfully get info from URL ...");
}, function(error) {
console.log("Server error ...");
console.log(error);
});
});
So when i test it with error path, i see Server error ... Undefined
What's the correct way to get error info please ?
