Add void print
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"enaklo-pos-be/internal/handlers/request"
|
||||
"enaklo-pos-be/internal/handlers/response"
|
||||
"enaklo-pos-be/internal/services"
|
||||
"fmt"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/go-playground/validator/v10"
|
||||
"net/http"
|
||||
@@ -50,6 +51,7 @@ func (h *Handler) Create(c *gin.Context) {
|
||||
|
||||
var req request.Product
|
||||
if err := c.ShouldBindJSON(&req); err != nil {
|
||||
fmt.Println(err)
|
||||
response.ErrorWrapper(c, errors.ErrorBadRequest)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user