From a1e27bc3fad9a142448ee46edf35e612b741d453 Mon Sep 17 00:00:00 2001 From: luke Date: Thu, 21 Sep 2006 23:09:23 +0000 Subject: Adding trace information to autoload.rb git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1658 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/autoload.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/puppet/autoload.rb') diff --git a/lib/puppet/autoload.rb b/lib/puppet/autoload.rb index 2604b3c91..c32863fe2 100644 --- a/lib/puppet/autoload.rb +++ b/lib/puppet/autoload.rb @@ -54,6 +54,9 @@ class Puppet::Autoload # of ruby are raising different errors on missing files. unless detail.to_s =~ /^no such file/i warn "Could not autoload %s: %s" % [name, detail] + if Puppet[:trace] + puts detail.backtrace + end end return false end -- cgit