send mysql errors to client