Skip to content

Commit

Permalink
Fix: chart repo response code inconsistent
Browse files Browse the repository at this point in the history
Response code should consistent whether namespace is existed or not

Signed-off-by: DQ <dengq@vmware.com>
  • Loading branch information
ninjadq committed May 26, 2020
1 parent 83bbdca commit b9a5f19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/api/chart_repository.go
Expand Up @@ -440,7 +440,7 @@ func (cra *ChartRepositoryAPI) requireNamespace(namespace string) bool {

// Not existing
if !existing {
cra.SendBadRequestError(fmt.Errorf("namespace %s is not existing", namespace))
cra.handleProjectNotFound(namespace)
return false
}

Expand Down

0 comments on commit b9a5f19

Please sign in to comment.