diff --git a/api/user.go b/api/user.go index 8113e1a..9c22dec 100644 --- a/api/user.go +++ b/api/user.go @@ -135,7 +135,7 @@ func (server *Server) login(ctx *gin.Context) { user, err := server.Store.GetUser(ctx, req.Username) if err != nil { if err == sql.ErrNoRows { - ctx.JSON(http.StatusNotFound, ErrorResponse(err, "")) + ctx.JSON(http.StatusNotFound, ErrorResponse(err, "User not found")) return } ctx.JSON(http.StatusInternalServerError, ErrorResponse(err, "Something went wrong whlie try to get user"))