You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No dump of the entire template when a syntax error is encountered:
- When rendering a erb template with a syntax error, we were
previously dumping the entire content of the template file into the
debug view, un-itended, un-highlighted and all in red. It really
doesn't help and distract a user from seeing the actually useful
stack trace.
The only time where this could be useful is when we render a inline
template (that could be dynamicallt generated), and therefore
it kinda make sense to dump it's content.
This commit prevents dumping the content of the template if rendered
from a file, and will keep dumping inline content.
0 commit comments