Singlestat panel: Fixed error handling, when query fail do not show last value, Fixes #1647

This commit is contained in:
Torkel Ödegaard 2015-03-26 12:05:08 +01:00
parent b1f85dc8f1
commit f343a46ca4

View File

@ -81,9 +81,10 @@ function (angular, app, _, TimeSeries, kbn, PanelMeta) {
panelHelper.updateTimeRange($scope);
return panelHelper.issueMetricQuery($scope, datasource)
.then($scope.dataHandler)
.then(null, function() {
.then($scope.dataHandler, function(err) {
$scope.series = [];
$scope.render();
throw err;
});
};