From 570c4f3a1f05ff792f267984e613a69f44ea23c5 Mon Sep 17 00:00:00 2001 From: Athou Date: Fri, 4 Apr 2014 11:41:15 +0200 Subject: [PATCH] display cause of invalid feed (#580) --- src/main/webapp/js/controllers.js | 2 ++ src/main/webapp/templates/feeds.subscribe.html | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/main/webapp/js/controllers.js b/src/main/webapp/js/controllers.js index 51dbe93e..6a83afd6 100644 --- a/src/main/webapp/js/controllers.js +++ b/src/main/webapp/js/controllers.js @@ -52,9 +52,11 @@ module.controller('SubscribeCtrl', ['$scope', '$location', 'FeedService', 'Categ $scope.state = 'ok'; $scope.sub.title = data.title; $scope.sub.url = data.url; + $scope.stacktrace = null; }, function(data) { $scope.state = 'failed'; $scope.sub.title = 'Loading failed. Invalid feed?'; + $scope.stacktrace = data.data; }); } }; diff --git a/src/main/webapp/templates/feeds.subscribe.html b/src/main/webapp/templates/feeds.subscribe.html index 6d2ced11..db306071 100644 --- a/src/main/webapp/templates/feeds.subscribe.html +++ b/src/main/webapp/templates/feeds.subscribe.html @@ -34,4 +34,6 @@ + +
{{stacktrace}}
\ No newline at end of file