fix(graph): show graph panel render errors as panel errors, fixes #5414

This commit is contained in:
Torkel Ödegaard
2016-07-06 06:31:32 +02:00
parent 435aa88c05
commit 6a8c774dcc
+4
View File
@@ -251,8 +251,12 @@ function (angular, $, moment, _, kbn, GraphTooltip) {
function callPlot(incrementRenderCounter) {
try {
$.plot(elem, sortedSeries, options);
delete ctrl.error;
delete ctrl.inspector;
} catch (e) {
console.log('flotcharts error', e);
ctrl.error = e.message || "Render Error";
ctrl.inspector = {error: ctrl.error};
}
if (incrementRenderCounter) {