summaryrefslogtreecommitdiff
path: root/lib/chef/runner.rb
diff options
context:
space:
mode:
authorAdam Jacob <adam@hjksolutions.com>2008-09-08 17:07:39 -0700
committerAdam Jacob <adam@hjksolutions.com>2008-09-08 17:07:39 -0700
commit5987e76b77c65e427659340a1f90e59099cc26c8 (patch)
tree7a5be04cd8254bfc53378ed5b4c60d4e167b3410 /lib/chef/runner.rb
parentdf601907c9bdbc856a5f28dc96df31bae8b7a5fb (diff)
downloadchef-5987e76b77c65e427659340a1f90e59099cc26c8.tar.gz
Rasing exceptions, expanding the path for the source line
Diffstat (limited to 'lib/chef/runner.rb')
-rw-r--r--lib/chef/runner.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/runner.rb b/lib/chef/runner.rb
index cd2126494a..969f42b4e3 100644
--- a/lib/chef/runner.rb
+++ b/lib/chef/runner.rb
@@ -80,8 +80,8 @@ class Chef
end
end
end
- rescue Exception => e
- Chef::Log.error("#{resource} (#{resource.source_line} had an error:")
+ rescue
+ Chef::Log.error("#{resource} (#{resource.source_line}) had an error:")
raise e
end
end