Tests: Membership controller

This commit is contained in:
Alex
2025-02-12 10:12:30 +01:00
parent 2fdb484451
commit 861d029ce5
7 changed files with 110 additions and 30 deletions

View File

@@ -36,7 +36,7 @@ func HandleValidationError(c *gin.Context, err error) {
c.JSON(http.StatusBadRequest, gin.H{"errors": validationErrors})
}
func HandleUpdateError(c *gin.Context, err error) {
func HandleUserUpdateError(c *gin.Context, err error) {
switch err {
case errors.ErrUserNotFound:
RespondWithError(c, err, "Error while updating user", http.StatusNotFound, "user", "server.validation.user_not_found")