diff options
author | Vasiliy Tolstov <v.tolstov@selfip.ru> | 2014-11-20 02:13:20 +0300 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-01-25 13:33:05 -0800 |
commit | 3efa7da42222ccd5dbfd7c2391a6f09058a1ddcd (patch) | |
tree | 948a44b6aa93450d1e70751a4ce0ceca9125ff7f /lib/chef/application/client.rb | |
parent | 91d1ebd3971f1913ea118709256b63412f82ef70 (diff) | |
download | chef-3efa7da42222ccd5dbfd7c2391a6f09058a1ddcd.tar.gz |
raise exception when error
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
Diffstat (limited to 'lib/chef/application/client.rb')
-rw-r--r-- | lib/chef/application/client.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/application/client.rb b/lib/chef/application/client.rb index d7b5f858e8..51d753d32f 100644 --- a/lib/chef/application/client.rb +++ b/lib/chef/application/client.rb @@ -286,6 +286,7 @@ class Chef::Application::Client < Chef::Application result = shell_out("tar zxvf #{tarball_path} -C #{Chef::Config.chef_repo_path}") Chef::Log.debug "#{result.stdout}" Chef::Log.debug "#{result.stderr}" + result.error! if result.error? rescue Mixlib::ShellOut::ShellCommandFailed => e Chef::Log.error "Not able to unpack recipes archive (#{e})" end |