Actions
Bug #18345
closedBetter rescue from syntax error in template rendering
Difficulty:
Triaged:
Description
In unsafe mode rendering, SyntaxError can be raised, which is normally not caught. In this specific case, we should be able to rescue even from syntax errors to avoid ugly error pages.
Also we should set proper context so we can get at least the number of line where the error occurred. This is possible only in unsafe mode but better than nothing.
Updated by Marek Hulán about 8 years ago
- Related to Bug #9695: Clearer template errors should be given during build review added
Updated by The Foreman Bot about 8 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/4247 added
Updated by Marek Hulán about 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 3a7665136a643bb5691fe4876cc5419ca694a40d.
Updated by Dominic Cleal about 8 years ago
- Translation missing: en.field_release set to 209
Updated by The Foreman Bot about 8 years ago
- Pull request https://github.com/theforeman/foreman/pull/4366 added
Actions