Skip to content

Commit c224a6d

Browse files
committed
Output port as number in error message
1 parent c97baa3 commit c224a6d

File tree

1 file changed

+1
-1
lines changed
  • staging/src/k8s.io/apiserver/pkg/util/proxy

1 file changed

+1
-1
lines changed

staging/src/k8s.io/apiserver/pkg/util/proxy/proxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func findServicePort(svc *v1.Service, port int32) (*v1.ServicePort, error) {
3535
return &svcPort, nil
3636
}
3737
}
38-
return nil, errors.NewServiceUnavailable(fmt.Sprintf("no service port %q found for service %q", port, svc.Name))
38+
return nil, errors.NewServiceUnavailable(fmt.Sprintf("no service port %d found for service %q", port, svc.Name))
3939
}
4040

4141
// ResourceLocation returns a URL to which one can send traffic for the specified service.

0 commit comments

Comments
 (0)