display cause of invalid feed (#580)

This commit is contained in:
Athou
2014-04-04 11:41:15 +02:00
parent 172164b74b
commit 570c4f3a1f
2 changed files with 4 additions and 0 deletions

View File

@@ -52,9 +52,11 @@ module.controller('SubscribeCtrl', ['$scope', '$location', 'FeedService', 'Categ
$scope.state = 'ok'; $scope.state = 'ok';
$scope.sub.title = data.title; $scope.sub.title = data.title;
$scope.sub.url = data.url; $scope.sub.url = data.url;
$scope.stacktrace = null;
}, function(data) { }, function(data) {
$scope.state = 'failed'; $scope.state = 'failed';
$scope.sub.title = 'Loading failed. Invalid feed?'; $scope.sub.title = 'Loading failed. Invalid feed?';
$scope.stacktrace = data.data;
}); });
} }
}; };

View File

@@ -34,4 +34,6 @@
</div> </div>
</div> </div>
</form> </form>
<pre ng-if="state == 'failed'">{{stacktrace}}</pre>
</div> </div>