diff options
Diffstat (limited to 'lib/puppet/application.rb')
-rw-r--r-- | lib/puppet/application.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/puppet/application.rb b/lib/puppet/application.rb index 5e69baef4..a028a158f 100644 --- a/lib/puppet/application.rb +++ b/lib/puppet/application.rb @@ -408,11 +408,11 @@ class Application private def exit_on_fail(message, code = 1) - yield + yield rescue RuntimeError, NotImplementedError => detail - puts detail.backtrace if Puppet[:trace] - $stderr.puts "Could not #{message}: #{detail}" - exit(code) + puts detail.backtrace if Puppet[:trace] + $stderr.puts "Could not #{message}: #{detail}" + exit(code) end def hook(step,&block) |