mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-03 07:34:35 +01:00
Fix: chart repo response code inconsistent
Response code should consistent whether namespace is existed or not Signed-off-by: DQ <dengq@vmware.com>
This commit is contained in:
parent
83bbdca166
commit
b9a5f19b13
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user