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.
This commit is contained in:
Martin Atkins 2016-04-06 09:34:10 -07:00
parent ad761f338d
commit f739ef9849
1 changed files with 1 additions and 1 deletions

View File

@ -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])