Fixes #59 Adding error handling to get_data() function

This commit is contained in:
Chris Cowan 2014-03-06 07:09:34 -07:00
parent 90f555f861
commit 3faa97fb52

View file

@ -335,6 +335,8 @@ define([
return;
}
$scope.panel.error = false;
var
request,
filter,
@ -385,6 +387,11 @@ define([
// populate the summary data based on the other facets
newData = {};
// Check for error and abort if found
if(!(_.isUndefined(r.error))) {
$scope.panel.error = $scope.parse_error(r.error);
return;
}
_.each(r.facets['timestamp'].terms, function (f) {
if (!$scope.panel.show_hidden && f.term[0] === ".") {