Include error details when error querying regions

This commit is contained in:
Justin Santa Barbara 2017-02-07 10:14:39 -05:00
parent e6fb6281f6
commit c776a699f9
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ func ValidateRegion(region string) error {
response, err := client.DescribeRegions(request)
if err != nil {
return fmt.Errorf("Got an error while querying for valid regions (verify your AWS credentials?)")
return fmt.Errorf("Got an error while querying for valid regions (verify your AWS credentials?): %v", err)
}
allRegions = response.Regions
}