print_reg_error