mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 18:02:01 +00:00
Merge pull request #74084 from smarterclayton/fix_human_error
Error message has incorrect pluralization
This commit is contained in:
commit
addcd7bb07
@ -127,7 +127,7 @@ func (c *AggregationController) sync(key string) (syncAction, error) {
|
||||
return syncRequeueRateLimited, err
|
||||
case httpStatus == http.StatusNotModified:
|
||||
case httpStatus == http.StatusNotFound || returnSpec == nil:
|
||||
return syncRequeueRateLimited, fmt.Errorf("OpenAPI spec does not exists")
|
||||
return syncRequeueRateLimited, fmt.Errorf("OpenAPI spec does not exist")
|
||||
case httpStatus == http.StatusOK:
|
||||
if err := c.openAPIAggregationManager.UpdateAPIServiceSpec(key, returnSpec, newEtag); err != nil {
|
||||
return syncRequeueRateLimited, err
|
||||
|
Loading…
Reference in New Issue
Block a user