fix error message

This commit is contained in:
Mitsuhiro Tanda
2017-09-29 13:44:01 +09:00
parent 78e3556e95
commit ec632bb9ed
+3 -3
View File
@@ -432,11 +432,11 @@ func (e *CloudWatchExecutor) ec2DescribeInstances(region string, filters []*ec2.
dsInfo := e.getDsInfo(region)
cfg, err := getAwsConfig(dsInfo)
if err != nil {
return nil, errors.New("Failed to call describe instances")
return nil, errors.New("Failed to call ec2:DescribeInstances")
}
sess, err := session.NewSession(cfg)
if err != nil {
return nil, errors.New("Failed to call describe instances")
return nil, errors.New("Failed to call ec2:DescribeInstances")
}
svc := ec2.New(sess, cfg)
@@ -455,7 +455,7 @@ func (e *CloudWatchExecutor) ec2DescribeInstances(region string, filters []*ec2.
return !lastPage
})
if err != nil {
return nil, errors.New("Failed to call describe instances")
return nil, errors.New("Failed to call ec2:DescribeInstances")
}
return &resp, nil