add validate errors in rule methods

This commit is contained in:
Pavel 2024-06-04 19:07:46 +03:00
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")
}