Implemented the cpr_error_trigger() function.