DariaSova / TagGen

Get your HashTag Game going!
0 stars 0 forks source link

Clean up user-facing error messages #39

Open eladmica opened 7 years ago

eladmica commented 7 years ago

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)