summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/errors.rb
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-10-06 03:13:15 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-10-06 03:13:15 +0000
commit675495cb21c716f325b23b50ac526929bf592f0f (patch)
tree0ab9e922d46327b832583d158f01b376790f735a /lib/puppet/util/errors.rb
parentab0141a2e03542902fc0d83d76b55d5e4b8811d0 (diff)
downloadpuppet-675495cb21c716f325b23b50ac526929bf592f0f.tar.gz
puppet-675495cb21c716f325b23b50ac526929bf592f0f.tar.xz
puppet-675495cb21c716f325b23b50ac526929bf592f0f.zip
Many, many, many performance improvements in the compiler (I hope). I did not change functionality anywhere, but I did some profiling and significantly reduced the runtime of many methods, and especially focused on some key methods that run many times.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1739 980ebf18-57e1-0310-9a29-db15c13687c0
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