浏览代码

Merge pull request #9534 from mtanda/cw_improve_err_msg

(cloudwatch) show error message when cloudwatch datasource can't add
Carl Bergquist 8 年之前
父节点
当前提交
2d840f12e0
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      public/app/plugins/datasource/cloudwatch/datasource.js

+ 2 - 0
public/app/plugins/datasource/cloudwatch/datasource.js

@@ -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 };
       });
       });
     };
     };