Issue #2165 has been updated by KlavsKlavsen.

I figure the right thing to do would be to modify line #31 in 
/usr/lib/ruby/1.8/puppet/type/file.rb - so it prints out the current "class" 
it's in or something.. if I have a class name - it would be easy to find the 
class definition.
----------------------------------------
Feature #2165: prepend working file to error message output
http://projects.reductivelabs.com/issues/2165

Author: KlavsKlavsen
Status: Unreviewed
Priority: Normal
Assigned to: 
Category: 
Target version: 
Complexity: Easy
Affected version: 0.24.8
Keywords: 


I currently have a problem where my rules work fine in ubuntu 8.04, but fail in 
Ubuntu 9.04.

I have compiled my own puppet 0.24.8 packages for both ubuntu versions.

The error messages are no help in regards to telling me which module/.pp file 
the problem is actually residing in :(

You can see the error output here: http://pastebin.com/f617e2427

I have confirmed that the error is in my manifest by making a node donothing 
{}; which I let the client inherit instead of the normal node - and then the 
run goes just fine.

My proposition is that when puppet gets an error - I figure it must know which 
file it was parsing/running at the time - it prepends the file it was running 
to the error message. And if possible the line number ofcourse - but just a 
filename would do me (and everyone else IMHO) good :)


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to