Convert stderr message calling error_get_pretty() to error_report()