-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ExceptionHandler doesn't show actual file & line of exception thrown #39415
Comments
Hi @webloft. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Hotel. Thank you for working on this issue.
|
Hello @webloft, Thanks for the report and collaboration! Please provide us with more information on the issue, like:
Thanks |
Environment doesn't matter. Steps to reproduce: put
Inside any frontend template. You will see that the exception is thrown without any information about the template or line number since this information is cut off in the exception handler, thanks. |
Hello @webloft, Thanks for the reply! We have tried to reproduce the issue in the 2.4-develop branch and it is reproducible for us. Please refer to the screenshot below for reference: Hence confirming the issue. You can also raise a community PR to fix this issue. Thanks |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-13460 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Hotel. Thank you for verifying the issue. |
…play the correct file and line number of the thrown exception.
Summary
We know there are tickets addressing exception handling, however did you guys realize that
magento2/lib/internal/Magento/Framework/App/ExceptionHandler.php
Line 116 in 88660e7
suppresses the file and line of the actual exception?
Examples
Exception inside a template - we'll see something like that:
Completely useless.
We want to see:
Proposed solution
No response
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: