summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/errors.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/util/errors.rb')
-rw-r--r--lib/puppet/util/errors.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/util/errors.rb b/lib/puppet/util/errors.rb
index ad129ee34..d077abdee 100644
--- a/lib/puppet/util/errors.rb
+++ b/lib/puppet/util/errors.rb
@@ -22,7 +22,7 @@ module Puppet::Util::Errors
def exceptwrap(options = {})
options[:type] ||= Puppet::DevError
begin
- retval = yield
+ return yield
rescue Puppet::Error => detail
raise adderrorcontext(detail)
rescue => detail