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
Exceptions raised from templates should show template code not compiled methods #51090
Comments
I just tried on apple silicon and linux the following steps:
Then I edited Which steps did you take to reproduce? |
Oh this is a strange one. This triggers the busted exception:
but this does not:
|
aha! I think maybe the compiled template line isn't matching the source line. |
Just confirmed this also happens on 7.1 |
Minimum code to regenerate the issue -->
Even if empty spaces are present after closing braces it will result in showing compiled string.
Problem
Solution
|
Seems like we've regressed on exceptions raised from within ERB templates. They're showing the backtrace of the compiled method instead of the underlying template. That's not very helpful.
The text was updated successfully, but these errors were encountered: