summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/puppet/network/client.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/puppet/network/client.rb b/lib/puppet/network/client.rb
index 9a861fdf2..d1738bd21 100644
--- a/lib/puppet/network/client.rb
+++ b/lib/puppet/network/client.rb
@@ -175,8 +175,11 @@ class Puppet::Network::Client
:tolerance => 1,
:start? => true
) do
- if self.scheduled?
- self.runnow
+ begin
+ self.runnow if self.scheduled?
+ rescue => detail
+ puts detail.backtrace if Puppet[:trace]
+ Puppet.err "Could not run client: %s" % detail
end
end