Skip to content
Permalink
Browse files

Output port as number in error message

  • Loading branch information
yutedz committed Nov 22, 2019
1 parent c97baa3 commit c224a6de5e01455bcd89763f1483546496e41dcb
Showing with 1 addition and 1 deletion.
  1. +1 −1 staging/src/k8s.io/apiserver/pkg/util/proxy/proxy.go
@@ -35,7 +35,7 @@ func findServicePort(svc *v1.Service, port int32) (*v1.ServicePort, error) {
return &svcPort, nil
}
}
return nil, errors.NewServiceUnavailable(fmt.Sprintf("no service port %q found for service %q", port, svc.Name))
return nil, errors.NewServiceUnavailable(fmt.Sprintf("no service port %d found for service %q", port, svc.Name))
}

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

0 comments on commit c224a6d

Please sign in to comment.
You can’t perform that action at this time.