give more detailed error messages to client