Skip to content

Commit

Permalink
chore: log Gateway name in error
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalek committed May 21, 2024
1 parent 5dd6765 commit 2d9e98a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/utils/gateway/ownerrefs.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func ListHTTPRoutesForGateway(
opts ...client.ListOption,
) ([]gwtypes.HTTPRoute, error) {
if gateway.Namespace == "" {
return nil, fmt.Errorf("can't list HTTPRoutes for gateway: gateway resource was missing namespace")
return nil, fmt.Errorf("can't list HTTPRoutes for gateway: Gateway %s was missing namespace", gateway.Name)
}

var httpRoutesList gwtypes.HTTPRouteList
Expand Down

0 comments on commit 2d9e98a

Please sign in to comment.