change printing style for error object.