summaryrefslogtreecommitdiff
path: root/lib/chef/runner.rb
diff options
context:
space:
mode:
authorAJ Christensen <aj@junglist.gen.nz>2008-09-24 03:08:39 +1200
committerAJ Christensen <aj@junglist.gen.nz>2008-09-24 03:08:39 +1200
commita43925d330203302f531a52e6babde88d2c177c2 (patch)
tree0fb07526a51fc139be05b045f664d8b2ed20ed9c /lib/chef/runner.rb
parent04d774ac51418692ba7709a2edda8ea88d1a4775 (diff)
downloadchef-a43925d330203302f531a52e6babde88d2c177c2.tar.gz
Adjust junglist recipe
Made the runner report back its errors, instead of throwing a useless stack: aj@junglist (branch: master) ~/chef$ sudo ./bin/chef-client -l info -c ./examples/config/chef-solo.rb INFO: Starting Chef Run ERROR: file[/tmp/glen] (/home/aj/git/chef/examples/config/cookbooks/tempfile/recipes/default.rb line 1) had an error: ./bin/../lib/chef/runner.rb:85:in `converge': undefined local variable or method `e' for #<Chef::Runner:0xb6bd5360> (NameError) from ./bin/../lib/chef/resource_collection.rb:59:in `each' from ./bin/../lib/chef/resource_collection.rb:58:in `each' from ./bin/../lib/chef/runner.rb:59:in `converge' from ./bin/../lib/chef/client.rb:141:in `converge' from ./bin/../lib/chef/client.rb:52:in `run' from ./bin/chef-client:65
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 969f42b4e3..fc01acd7ca 100644
--- a/lib/chef/runner.rb
+++ b/lib/chef/runner.rb
@@ -80,7 +80,7 @@ class Chef
end
end
end
- rescue
+ rescue => e
Chef::Log.error("#{resource} (#{resource.source_line}) had an error:")
raise e
end
@@ -93,4 +93,4 @@ class Chef
true
end
end
-end \ No newline at end of file
+end