golistic / pxmysql

Go MySQL driver using X Protocol
MIT License
14 stars 0 forks source link

driver.ErrBadConn must be wrapped within more useful error #30

Closed geertjanvdk closed 1 year ago

geertjanvdk commented 1 year ago

Whenever we return the driver.ErrBadConn, we should wrap it within an error message that actually says what went wrong. Go's sql package can deal with this.

We consider this a bug since it is recommended to do this and helps users.