Commit 4b170ca9 by Torkel Ödegaard

Corrected error handling for influxdb datasource when loading/deleting dashboard

parent d6e844c6
......@@ -253,7 +253,7 @@ function (angular, _, kbn, InfluxSeries, InfluxQueryBuilder) {
return angular.fromJson(dashJson);
}, function(err) {
return "Could not load dashboard, " + err.data;
throw "Could not load dashboard, " + err.data;
});
};
......@@ -264,7 +264,7 @@ function (angular, _, kbn, InfluxSeries, InfluxQueryBuilder) {
}
return id;
}, function(err) {
return "Could not delete dashboard, " + err.data;
throw "Could not delete dashboard, " + err.data;
});
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment