diff options
author | Markus Roberts <Markus@reality.com> | 2010-01-24 18:32:25 -0800 |
---|---|---|
committer | Markus Roberts <Markus@reality.com> | 2010-01-24 18:32:25 -0800 |
commit | 0025e13792b6a8e010ce1fd1dc20a17e7ba8af53 (patch) | |
tree | 5715206a2db5717adb7077ff786541906b8fde28 /lib/puppet/indirector | |
parent | bfc9e45309abd182aac99a7dbf8960540fc05bf6 (diff) | |
download | puppet-0025e13792b6a8e010ce1fd1dc20a17e7ba8af53.tar.gz puppet-0025e13792b6a8e010ce1fd1dc20a17e7ba8af53.tar.xz puppet-0025e13792b6a8e010ce1fd1dc20a17e7ba8af53.zip |
Partial reversion of patch for #3088 to fix #3104 (Exception misreported)
In my patch for #3088 I made a erroneous assumption about the ruby exception
hierarchy and thus missed the fact that Timeout::error descends from both
SignalError and Interrupt. This is a partial reversion of the patch for #3088
to let these through so that more useful error messages can be produced.
Diffstat (limited to 'lib/puppet/indirector')
-rw-r--r-- | lib/puppet/indirector/facts/facter.rb | 2 | ||||
-rw-r--r-- | lib/puppet/indirector/ldap.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/indirector/facts/facter.rb b/lib/puppet/indirector/facts/facter.rb index 2caeeede2..b5787ddf6 100644 --- a/lib/puppet/indirector/facts/facter.rb +++ b/lib/puppet/indirector/facts/facter.rb @@ -29,7 +29,7 @@ class Puppet::Node::Facts::Facter < Puppet::Indirector::Code Timeout::timeout(self.timeout) do load file end - rescue SystemExit,NoMemoryError,SignalException,Interrupt + rescue SystemExit,NoMemoryError raise rescue Exception => detail Puppet.warning "Could not load fact file %s: %s" % [fqfile, detail] diff --git a/lib/puppet/indirector/ldap.rb b/lib/puppet/indirector/ldap.rb index 31ee0e020..ab3c7ef54 100644 --- a/lib/puppet/indirector/ldap.rb +++ b/lib/puppet/indirector/ldap.rb @@ -40,7 +40,7 @@ class Puppet::Indirector::Ldap < Puppet::Indirector::Terminus found = true yield entry end - rescue SystemExit,NoMemoryError,SignalException,Interrupt + rescue SystemExit,NoMemoryError raise rescue Exception => detail if count == 0 |