Skip to content

Commit 4348f61

Browse files
authored
ENGCOM-4423: Ensure __toString() catches all error types #21545
2 parents 9d7da2c + 97916c8 commit 4348f61

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)