Merge pull request #12712 from foragerr/enhance-s3-errors

provider aws: add more details to s3 error message
This commit is contained in:
Jake Champlin 2017-03-15 11:37:19 -04:00 committed by GitHub
commit 67e95f8693
1 changed files with 1 additions and 1 deletions

View File

@ -319,7 +319,7 @@ func resourceAwsS3BucketObjectDelete(d *schema.ResourceData, meta interface{}) e
}
_, err := s3conn.DeleteObject(&input)
if err != nil {
return fmt.Errorf("Error deleting S3 bucket object: %s", err)
return fmt.Errorf("Error deleting S3 bucket object: %s Bucket: %q Object: %q", err, bucket, key)
}
}