Skip to content

Commit faa3039

Browse files
ENGCOM-4423: Ensure \__toString()\ catches all error types #21545
- Merge Pull Request #21545 from tylerssn/magento2:patch-1 - Merged commits: 1. af86cc6
2 parents e51df41 + af86cc6 commit faa3039

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Ui/TemplateEngine/Xhtml

1 file changed

+1
-1
lines changed

app/code/Magento/Ui/TemplateEngine/Xhtml/Result.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function __toString()
115115
$this->compiler->compile($templateRootElement, $this->component, $this->component);
116116
$this->appendLayoutConfiguration();
117117
$result = $this->compiler->postprocessing($this->template->__toString());
118-
} catch (\Exception $e) {
118+
} catch (\Throwable $e) {
119119
$this->logger->critical($e->getMessage());
120120
$result = $e->getMessage();
121121
}

0 commit comments

Comments
 (0)