show error message when cloudwatch datasource can't add

This commit is contained in:
Mitsuhiro Tanda 2017-10-16 13:05:53 +09:00
parent 91f60bb6c4
commit 40b11654fd

View File

@ -318,6 +318,8 @@ function (angular, _, moment, dateMath, kbn, templatingVariable) {
return this.getDimensionValues(region, namespace, metricName, 'ServiceName', dimensions).then(function () { return this.getDimensionValues(region, namespace, metricName, 'ServiceName', dimensions).then(function () {
return { status: 'success', message: 'Data source is working' }; return { status: 'success', message: 'Data source is working' };
}, function (err) {
return { status: 'error', message: err.message };
}); });
}; };