diff --git a/src/core/api/chart_repository.go b/src/core/api/chart_repository.go index 2b39d5f5a..d9d3b096f 100755 --- a/src/core/api/chart_repository.go +++ b/src/core/api/chart_repository.go @@ -442,7 +442,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 }