mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
show error message when cloudwatch datasource can't add
This commit is contained in:
parent
91f60bb6c4
commit
40b11654fd
@ -318,6 +318,8 @@ function (angular, _, moment, dateMath, kbn, templatingVariable) {
|
||||
|
||||
return this.getDimensionValues(region, namespace, metricName, 'ServiceName', dimensions).then(function () {
|
||||
return { status: 'success', message: 'Data source is working' };
|
||||
}, function (err) {
|
||||
return { status: 'error', message: err.message };
|
||||
});
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user