mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 08:55:55 -04:00
Merge pull request #74084 from smarterclayton/fix_human_error
Error message has incorrect pluralization
This commit is contained in:
commit
addcd7bb07
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue