summaryrefslogtreecommitdiffstats
path: root/lib/puppet/agent.rb
diff options
context:
space:
mode:
authorMarkus Roberts <Markus@reality.com>2010-01-24 18:32:25 -0800
committerMarkus Roberts <Markus@reality.com>2010-01-24 18:32:25 -0800
commit0025e13792b6a8e010ce1fd1dc20a17e7ba8af53 (patch)
tree5715206a2db5717adb7077ff786541906b8fde28 /lib/puppet/agent.rb
parentbfc9e45309abd182aac99a7dbf8960540fc05bf6 (diff)
downloadpuppet-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/agent.rb')
-rw-r--r--lib/puppet/agent.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/agent.rb b/lib/puppet/agent.rb
index 5dbb15227..c188719ba 100644
--- a/lib/puppet/agent.rb
+++ b/lib/puppet/agent.rb
@@ -51,7 +51,7 @@ class Puppet::Agent
with_client do |client|
begin
sync.synchronize { lock { client.run(*args) } }
- rescue SystemExit,NoMemoryError,SignalException,Interrupt
+ rescue SystemExit,NoMemoryError
raise
rescue Exception => detail
puts detail.backtrace if Puppet[:trace]
@@ -124,7 +124,7 @@ class Puppet::Agent
def with_client
begin
@client = client_class.new
- rescue SystemExit,NoMemoryError,SignalException,Interrupt
+ rescue SystemExit,NoMemoryError
raise
rescue Exception => detail
puts detail.backtrace if Puppet[:trace]