Generally we would not want the user to be exposed to our implementation details via error messages. We should log the specific error, and just send the user a general message (e.g. "Internal Server Error"). So we should replace stuff like c.JSON(http.StatusBadRequest, err)
Generally we would not want the user to be exposed to our implementation details via error messages. We should log the specific error, and just send the user a general message (e.g. "Internal Server Error"). So we should replace stuff like
c.JSON(http.StatusBadRequest, err)