Skip to content

Commit

Permalink
Improve the error message for VPC creation
Browse files Browse the repository at this point in the history
  • Loading branch information
odaira authored and hkantare committed Feb 14, 2020
1 parent b5f2cee commit 89ee51d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibm/resource_ibm_is_vpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func resourceIBMISVPCCreate(d *schema.ResourceData, meta interface{}) error {
vpc, err := vpcC.Create(name, isVPCAddressPrefixManagement, isClassic, nwacl, rg)
if err != nil {
log.Printf("[DEBUG] VPC err %s", isErrorToString(err))
return err
return fmt.Errorf("Error while creating VPC %s: %v", name, err)
}

d.SetId(vpc.ID.String())
Expand Down

0 comments on commit 89ee51d

Please sign in to comment.