Browse Source

Hotfix for #353 (#367)

Change error message
master
rozetko 5 years ago committed by GitHub
parent
commit
190bd73375
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/panel/graph_panel/graph_ctrl.ts

2
src/panel/graph_panel/graph_ctrl.ts

@ -763,7 +763,7 @@ class GraphCtrl extends MetricsPanelCtrl {
private async _getDatasourceRequest() { private async _getDatasourceRequest() {
if(this._datasourceRequest === undefined) { if(this._datasourceRequest === undefined) {
throw new Error('Datasource is not set. If it`s Grafana test-datasource - it`s not supported'); throw new Error('Datasource is not set. If it`s Grafana-test-datasource then it`s not supported');
} }
if(this._datasourceRequest.type === undefined) { if(this._datasourceRequest.type === undefined) {
const datasource = await this._getDatasourceByName(this.panel.datasource); const datasource = await this._getDatasourceByName(this.panel.datasource);

Loading…
Cancel
Save