[Backport] missing use statement in layout generator#19338
[Backport] missing use statement in layout generator#19338magento-engcom-team merged 2 commits intomagento:2.2-developfrom
Conversation
|
Hi @gelanivishal. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
|
Hi @sidolov, thank you for the review. |
|
Hi @rodrigowebjump, thank you for the review. |
|
Hi @gelanivishal. Thank you for your contribution. Please, consider to port this solution to 2.3 release line. |
Original Pull Request
#19009
Description (*)
Simple change. LocalizedException was used in class \Magento\Framework\View\Layout\Generator\Block, but it were missing in use section. It were not causing any fatal errors because of the way how it was used in method \Magento\Framework\View\Layout\Generator\Block::handleRenderException:
Fixed Issues (if relevant)
Manual testing scenarios (*)
1.force any block to throw LocalizedException during generation, and check error message in logs. It ought to be message from the \Magento\Framework\Exception\LocalizedException::getLogMessage method
Contribution checklist (*)