Provide a human-readable error message when minify callback has an error

Created on 13 February 2024, 10 months ago
Updated 6 March 2024, 10 months ago

Problem/Motivation

Minifyhtml uses several regular expressions to minify the generated html. When one of these regular expressions generates an error, an error is logged to the watchdog. However, it only contains an error code and no error message.

Steps to reproduce

Generate an error using the existing regular expressions. Notice the following error message in the watchdog:
Preg error. The error code is 2. You can view what this error code is by viewing http://php.net/manual/en/function.preg-last-error.php

Proposed resolution

Provide a human-readable error message when minify callback has an error

Remaining tasks

  1. Write a patch
  2. Review
  3. Commit

User interface changes

None.

API changes

None.

Data model changes

None.

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇳🇱Netherlands idebr

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024