From 5d50ca790e7f752e07da84197b52ff84d2dcfdb4 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Wed, 3 Oct 2007 17:31:57 -0500 Subject: Fixing #814 -- when files are missing, the exceptions should now be more reasonable. --- bin/puppet | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/puppet') diff --git a/bin/puppet b/bin/puppet index deeb65c42..a87a07619 100755 --- a/bin/puppet +++ b/bin/puppet @@ -197,13 +197,13 @@ begin config = client.getconfig config.apply rescue => detail + if Puppet[:trace] + puts detail.backtrace + end if detail.is_a?(XMLRPC::FaultException) $stderr.puts detail.message else $stderr.puts detail end - if Puppet[:trace] - puts detail.backtrace - end exit(1) end -- cgit