Improve reporting of error objects