News for hackers. Stuff that matters.
Re:Practical Persistence in Go: SQL Databases by rakoo on Thursday June 18, 2015 @10:56AM (#9738901)
> http.Error(w, err.Error(), 500)

This will send the sql error directly to the client. I don't think it's a good idea because it can leak important information to it; it's better to log this error on the server and send back a generic failure message to the client.

Re:Practical Persistence in Go: SQL Databases by alexedwards on Tuesday June 23, 2015 @03:27PM (#9767092)
Yep, thanks. I've updated the examples to use `http.Error(w, http.StatusText(500), 500)` instead.