Make subscription failures visible.

--HG--
extra : rebase_source : 9e7232b821665d9a6342c928d0b17ac3bdd9e6e7
This commit is contained in:
Risto Kankkunen
2013-05-20 22:14:56 +03:00
parent 9fc5cee6fe
commit 8f9e8fd2ea
2 changed files with 12 additions and 3 deletions

View File

@@ -75,8 +75,11 @@ function($scope, FeedService, CategoryService) {
}
FeedService.subscribe($scope.sub, function() {
CategoryService.init();
$scope.close();
}, function(data) {
$scope.state = 'failed';
$scope.sub.title = 'ERROR: ' + data.data;
});
$scope.close();
};
$scope.openImport = function() {