From f739ef984978ed7838898036b49359737d789410 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Wed, 6 Apr 2016 09:34:10 -0700 Subject: [PATCH] Human-readable error for failure to read EC2 volume Previously the format string was using %#v, which prints the whole data structure given. Instead we want to use %s to get the string representation of the error. This fixes #6038. --- builtin/providers/aws/resource_aws_ebs_volume.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/providers/aws/resource_aws_ebs_volume.go b/builtin/providers/aws/resource_aws_ebs_volume.go index 5abea1f2f..8dfbd0cf3 100644 --- a/builtin/providers/aws/resource_aws_ebs_volume.go +++ b/builtin/providers/aws/resource_aws_ebs_volume.go @@ -186,7 +186,7 @@ func resourceAwsEbsVolumeRead(d *schema.ResourceData, meta interface{}) error { d.SetId("") return nil } - return fmt.Errorf("Error reading EC2 volume %s: %#v", d.Id(), err) + return fmt.Errorf("Error reading EC2 volume %s: %s", d.Id(), err) } return readVolume(d, response.Volumes[0])