diff options
author | John Keiser <jkeiser@opscode.com> | 2013-09-12 16:06:23 -0700 |
---|---|---|
committer | John Keiser <jkeiser@opscode.com> | 2013-10-02 11:57:20 -0700 |
commit | 6801b07c9a4b66984c3a45754502770fc2d835e7 (patch) | |
tree | 47340df56539cd4d7285002703fa553797e056cd /lib/chef/client.rb | |
parent | 583a308c1548ae76d2e2066d7a8aa8fb4a1d479d (diff) | |
download | chef-6801b07c9a4b66984c3a45754502770fc2d835e7.tar.gz |
Report error when chef-client throws an exception
Diffstat (limited to 'lib/chef/client.rb')
-rw-r--r-- | lib/chef/client.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/client.rb b/lib/chef/client.rb index 3a5f112b0c..a505fe1651 100644 --- a/lib/chef/client.rb +++ b/lib/chef/client.rb @@ -198,6 +198,7 @@ class Chef Chef::Log.debug "Forked instance now converging" do_run rescue Exception + Chef::Log.error $! exit 1 else exit 0 |