Get extra error output when debugging custom types?
309 views
Skip to first unread message
ZJE
unread,
Jul 31, 2012, 6:24:15 PM7/31/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppet...@googlegroups.com
Is it possible to get extra output when running custom types? Right now, I'm getting an error message and I'm not sure where in the code it's being thrown from. For example, I can see that I'm trying to iterate over a null object, but I'm not sure where in the code this happening when the message is this: --- Error: /Stage[main]//Node[testnode0101]/TestType[testname]: Could not evaluate: undefined method `each' for nil:NilClass ---
Thanks!
Stefan Schulte
unread,
Jul 31, 2012, 7:07:40 PM7/31/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppet...@googlegroups.com
Try to run puppet with the --trace option which will hopefully show a
stacktrace when the error is happening. Otherwise you can place a few
method call like
debug "inside validation block"
etc and run puppet with -d/--debug
-Stefan
ZJE
unread,
Aug 1, 2012, 8:47:39 AM8/1/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppet...@googlegroups.com
--trace gives exactly what I was looking for - thanks!