From 7781baa24b33c33e6d10d3c557a1964b184a3eda Mon Sep 17 00:00:00 2001 From: Craig Knott Date: Thu, 27 Apr 2017 11:39:10 -0500 Subject: [PATCH] Change fmt error to errwrap wrapf --- builtin/providers/aws/data_source_aws_efs_file_system.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builtin/providers/aws/data_source_aws_efs_file_system.go b/builtin/providers/aws/data_source_aws_efs_file_system.go index 675cf10dd..0df4965af 100644 --- a/builtin/providers/aws/data_source_aws_efs_file_system.go +++ b/builtin/providers/aws/data_source_aws_efs_file_system.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/efs" + "github.com/hashicorp/errwrap" "github.com/hashicorp/terraform/helper/schema" ) @@ -50,7 +51,7 @@ func dataSourceAwsEfsFileSystemRead(d *schema.ResourceData, meta interface{}) er describeResp, err := efsconn.DescribeFileSystems(describeEfsOpts) if err != nil { - return fmt.Errorf("Error retrieving EFS: {{err}}", err) + return errwrap.Wrapf("Error retrieving EFS: {{err}}", err) } if len(describeResp.FileSystems) != 1 { return fmt.Errorf("Search returned %d results, please revise so only one is returned", len(describeResp.FileSystems))