Bug #9695
open
Clearer template errors should be given during build review
Added by Martin Hovmöller almost 10 years ago.
Updated almost 8 years ago.
Description
When putting a machine in build mode, if there is an error in the template the error message is very vague, like "Failure parsing <template name>: undefined method `<' for nil:NilClass.".
This makes debugging very hard. The error message should at least contain the line number for the line causing the error.
- Project changed from Docker to Foreman
- Subject changed from Clearer template errors should be given. to Clearer template errors should be given during build review
- Category set to Templates
- Related to Feature #746: Generate all the Host template when click on Build to avoid errors during installation added
- Assignee set to Shlomi Zadok
- Assignee deleted (
Shlomi Zadok)
- Related to Bug #18345: Better rescue from syntax error in template rendering added
Error messages could be improved by using macros, that would have explicit checks on objects. There was a discussion on foreman-dev list recently that suggested using proxy objects on which we'd define such macros. The line number is technically possible only with safe mode disabled, #18432 adds this to the log at least.
Also available in: Atom
PDF