mirror of https://github.com/k3s-io/k3s
Merge pull request #74084 from smarterclayton/fix_human_error
Error message has incorrect pluralizationpull/564/head
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