forked from Archives/Athou_commafeed
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.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;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -34,4 +34,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
<pre ng-if="state == 'failed'">{{stacktrace}}</pre>
|
||||||
</div>
|
</div>
|
||||||
Reference in New Issue
Block a user