Skip to content

Commit

Permalink
More verbose pcre.backtrack_limit exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
finwe committed Sep 1, 2023
1 parent 45ea7fb commit 69be907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mpdf.php
Expand Up @@ -27071,7 +27071,7 @@ function AdjustHTML($html, $tabSpaces = 8)

if (strlen($html) > (int) $limit) {
throw new \Mpdf\MpdfException(sprintf(
'The HTML code size is larger than pcre.backtrack_limit %d. You should use WriteHTML() with smaller string lengths.',
'The HTML code size is larger than pcre.backtrack_limit %d. You should use WriteHTML() with smaller string lengths. Pass your HTML in smaller chunks.',
$limit
));
}
Expand Down

0 comments on commit 69be907

Please sign in to comment.