Improving on_error reporting.