Catch more errors of twig labels

This commit is contained in:
Jan Böhmer 2026-02-15 14:11:31 +01:00
parent 1c6bf3f472
commit 5e9f7a11a3
2 changed files with 3 additions and 4 deletions

View file

@ -95,7 +95,7 @@ final class LabelHTMLGenerator
'paper_height' => $options->getHeight(),
]
);
} catch (Error $exception) {
} catch (\Throwable $exception) {
throw new TwigModeException($exception);
}
} else {