add validate errors in rule methods
This commit is contained in:
parent
558711eb04
commit
6dc56a9a2d
@ -77,7 +77,7 @@ func (c *Controller) SetQuizSettings(ctx *fiber.Ctx) error {
|
||||
}
|
||||
switch {
|
||||
case errors.Is(err, service_errors.ErrNotFound):
|
||||
return ctx.Status(fiber.StatusNotFound).SendString("not found")
|
||||
return ctx.Status(fiber.StatusNotFound).SendString("not found user for this rule")
|
||||
default:
|
||||
return ctx.Status(fiber.StatusInternalServerError).SendString("Internal Server Error")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user