Clean code for error reporting.