On Friday, December 13, 2013 5:30:26 AM UTC+9, Trevor Vaughan wrote:
>
> Does anyone know of a way to add a file-centric backtrace to the validate 
> functions in the Stdlib?
>
> If you use a validator in a defined type, you end up not having any idea 
> what actually threw the error.
>

 Annoying indeed - had this issue quite often as well. What you want is to 
change this in your checkout of stdlib (modules/stdlib):

For spec/unit/puppet/parser/functions/validate_*_spec.rb

Change all:
expect { scope.compiler.compile }.to raise_error(Puppet::ParseError

to:
expect { scope.compiler.compile }.to raise_error(Puppet::Error

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/6fec71ff-df7c-4f66-a2a5-21be0e68d587%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to