Could we return (and log) more detailed error messages?