diff --git a/internal/services/network/validate/gateway_subnet.go b/internal/services/network/validate/gateway_subnet.go index 5c2f8883087e..294309b2e842 100644 --- a/internal/services/network/validate/gateway_subnet.go +++ b/internal/services/network/validate/gateway_subnet.go @@ -24,7 +24,7 @@ func IsGatewaySubnet(i interface{}, k string) (warnings []string, errors []error } if !strings.EqualFold(id.SubnetName, "GatewaySubnet") { - errors = append(errors, fmt.Errorf("expected %s to reference a gateway subnet with name GatewaySubnet", k)) + errors = append(errors, fmt.Errorf("expected %s to reference a gateway subnet with name GatewaySubnet but got %q", k, id.SubnetName)) } return warnings, errors