From 7573a2751c9a79423c723873149ad1a4c1051a5b Mon Sep 17 00:00:00 2001 From: heyyakash Date: Sat, 31 Aug 2024 23:03:29 +0530 Subject: [PATCH] added error messages --- backend/internal/handler/auth.handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/internal/handler/auth.handlers.go b/backend/internal/handler/auth.handlers.go index 55ff3da..95e3884 100644 --- a/backend/internal/handler/auth.handlers.go +++ b/backend/internal/handler/auth.handlers.go @@ -63,7 +63,7 @@ func LoginUser() gin.HandlerFunc { return func(ctx *gin.Context) { var req modals.Users if err := ctx.BindJSON(&req); err != nil { - ctx.JSON(http.StatusBadRequest, utils.ResponseGenerator("Bad Fields", false)) + ctx.JSON(http.StatusBadRequest, utils.ResponseGenerator("Bad Fields Provided", false)) return } user, err := db.Store.GetUserByEmail(req.Email)