Change behavior of report_error