Merge pull request #74084 from smarterclayton/fix_human_error

Error message has incorrect pluralization
pull/564/head
Kubernetes Prow Robot 2019-02-14 13:59:59 -08:00 committed by GitHub
commit addcd7bb07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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