On 2014-08-02 07:55, Craig Barr wrote:
TL;DR How do I output a custom error message for a failed assertion that a source file exists. In other words, how do I display a nice error message when puppet:///modules/mymodule/mysourcefile.txt does not exist
A great way to improve the situation would be to improve puppet to enumerate the locations it searched in the filesystem (perhaps only in the server log, to avoid leaking sensitive information) and file a jira-ticket + pull request.
If you only need it for a Very Special Case[tm], then you might be served by doing a special fail_unless_exists() function that you deliver with your module.
Regards, David -- * Always looking for people I can help with awesome projects * G+: https://plus.google.com/+DavidSchmitt Blog: http://club.black.co.at/log/ LinkedIn: http://at.linkedin.com/in/davidschmitt -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/53DF8095.5040907%40dasz.at. For more options, visit https://groups.google.com/d/optout.