forked from Archives/Athou_commafeed
correctly handle error callback (fix #614)
This commit is contained in:
@@ -248,7 +248,10 @@ module.factory('CategoryService', ['$resource', '$http', function($resource, $ht
|
|||||||
_.merge(res.subscriptions, data);
|
_.merge(res.subscriptions, data);
|
||||||
if (success)
|
if (success)
|
||||||
success(data);
|
success(data);
|
||||||
}, error);
|
}, function(data) {
|
||||||
|
if (error)
|
||||||
|
error(data);
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
res.init();
|
res.init();
|
||||||
|
|||||||
Reference in New Issue
Block a user