From 10e3cad5cec2fe30635a6f1b02aa49d403554af0 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 7 Jul 2014 15:03:18 -0700 Subject: [PATCH] providers/aws: fix error message for aws_subnet --- builtin/providers/aws/resource_aws_subnet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/providers/aws/resource_aws_subnet.go b/builtin/providers/aws/resource_aws_subnet.go index b3fefc0ec..2c66419e6 100644 --- a/builtin/providers/aws/resource_aws_subnet.go +++ b/builtin/providers/aws/resource_aws_subnet.go @@ -30,7 +30,7 @@ func resource_aws_subnet_create( log.Printf("[DEBUG] Subnet create config: %#v", createOpts) resp, err := ec2conn.CreateSubnet(createOpts) if err != nil { - return nil, fmt.Errorf("Error creating subnet: %s", resp) + return nil, fmt.Errorf("Error creating subnet: %s", err) } // Get the ID and store it