Tests: Membership controller
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user