mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Fixes #59 Adding error handling to get_data() function
This commit is contained in:
parent
90f555f861
commit
3faa97fb52
1 changed files with 7 additions and 0 deletions
|
@ -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] === ".") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue