summaryrefslogtreecommitdiffstats
path: root/bin/puppet
diff options
context:
space:
mode:
Diffstat (limited to 'bin/puppet')
-rwxr-xr-xbin/puppet6
1 files changed, 3 insertions, 3 deletions
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