Dashboard: replace datasource name with a reference object (#33817)
Co-authored-by: Torkel Ödegaard <torkel@grafana.com> Co-authored-by: Elfo404 <me@giordanoricci.com>
This commit is contained in:
co-authored by
Torkel Ödegaard
Elfo404
parent
61fbdb60ff
commit
7319efe077
@@ -102,7 +102,7 @@ class DataSourceWithBackend<
|
||||
const ds = getDataSourceSrv().getInstanceSettings(q.datasource);
|
||||
|
||||
if (!ds) {
|
||||
throw new Error('Unknown Datasource: ' + q.datasource);
|
||||
throw new Error(`Unknown Datasource: ${JSON.stringify(q.datasource)}`);
|
||||
}
|
||||
|
||||
datasourceId = ds.id;
|
||||
|
||||
Reference in New Issue
Block a user