Merge pull request #12070 from ninjadq/chartrepo_enumeration

Fix: chart repo response code inconsistent
This commit is contained in:
Steven Zou 2020-05-27 17:00:07 +08:00 committed by GitHub
commit 7bf9888b34

View File

@ -440,7 +440,7 @@ func (cra *ChartRepositoryAPI) requireNamespace(namespace string) bool {
// Not existing // Not existing
if !existing { if !existing {
cra.SendBadRequestError(fmt.Errorf("namespace %s is not existing", namespace)) cra.handleProjectNotFound(namespace)
return false return false
} }