Closed arkadiusz-wieczorek closed 9 years ago
@debian-sh you can add an extra callback on done():
this.deletePlace = function(place_id) {
return store.remove('places', {
'id': "/" + place_id
}).done(function() {
ee.emit('change');
}, function(xhr) {
alert('error');
})
}
I have deletePlace function in my project. When I send DELETE without authorization to some resource server I've got the error 401, how can I catch errors in amygdala?
Error example caused by lack of authorization