Browse Source

add error message

Mitsuhiro Tanda 7 years ago
parent
commit
61e2710961
1 changed files with 2 additions and 0 deletions
  1. 2 0
      public/app/plugins/datasource/cloudwatch/config_ctrl.ts

+ 2 - 0
public/app/plugins/datasource/cloudwatch/config_ctrl.ts

@@ -76,6 +76,8 @@ export class CloudWatchConfigCtrl {
       })
       })
       .then(regions => {
       .then(regions => {
         this.regions = _.uniq(this.regions.concat(_.map(regions, 'value')));
         this.regions = _.uniq(this.regions.concat(_.map(regions, 'value')));
+      }, err => {
+        console.error('failed to call ec2:DescribeRegions, please check iam setting');
       });
       });
   }
   }
 }
 }