Improved error system

Various enhancements have also been made to how Puppet reports errors.

Now, in most of the error messages, besides the filename and the line where the error is caught, the position inside the line is also indicated (the format is filename:line:position).

The same error messages have been improved to ease readability and troubleshooting.

It's also possible to configure the parameters max_errors, max_warnings, and max_deprecations (by default, 10 for each of them) in puppet.conf to set the maximum lines to print for each of these error categories. If the limit is reached, the last line with the total count of the found errors is printed.

Get Extending Puppet now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.