mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Corrected error handling for influxdb datasource when loading/deleting dashboard
This commit is contained in:
parent
d6e844c67c
commit
4b170ca9a3
@ -253,7 +253,7 @@ function (angular, _, kbn, InfluxSeries, InfluxQueryBuilder) {
|
|||||||
|
|
||||||
return angular.fromJson(dashJson);
|
return angular.fromJson(dashJson);
|
||||||
}, function(err) {
|
}, 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;
|
return id;
|
||||||
}, function(err) {
|
}, function(err) {
|
||||||
return "Could not delete dashboard, " + err.data;
|
throw "Could not delete dashboard, " + err.data;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user