mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
display cause of invalid feed (#580)
This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -34,4 +34,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<pre ng-if="state == 'failed'">{{stacktrace}}</pre>
|
||||
</div>
|
||||
Reference in New Issue
Block a user