Output MySQL error message in exception