Actions
Bug #9695
openClearer template errors should be given during build review
Status:
New
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
-
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.
Updated by Dominic Cleal almost 10 years ago
- 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
Updated by Dominic Cleal almost 10 years ago
- Related to Feature #746: Generate all the Host template when click on Build to avoid errors during installation added
Updated by Marek Hulán almost 8 years ago
- Related to Bug #18345: Better rescue from syntax error in template rendering added
Updated by Marek Hulán almost 8 years ago
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.
Actions