1
0

implemented namespace update via interface method

This commit is contained in:
konrad
2018-07-12 00:30:31 +02:00
committed by kolaente
parent 0aa84e653f
commit 261aaba315
9 changed files with 103 additions and 224 deletions

View File

@ -44,9 +44,6 @@ func (c *WebHandler) CreateWeb(ctx echo.Context) error {
return echo.NewHTTPError(http.StatusForbidden, "You need to have write access on that list.")
}
if models.IsErrNamespaceDoesNotExist(err) {
return echo.NewHTTPError(http.StatusBadRequest, "The namespace does not exist.")
}
if models.IsErrNamespaceNameCannotBeEmpty(err) {
return echo.NewHTTPError(http.StatusNotFound, "The namespace name cannot be empty.")
}