Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
Fixes elastic#59 Adding error handling to get_data() function
Browse files Browse the repository at this point in the history
  • Loading branch information
simianhacker committed Mar 6, 2014
1 parent 90f555f commit 3faa97f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions kibana/panels/stats_table/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,8 @@ define([
return;
}

$scope.panel.error = false;

var
request,
filter,
Expand Down Expand Up @@ -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] === ".") {
Expand Down

0 comments on commit 3faa97f

Please sign in to comment.