diff options
author | danielsdeleo <dan@opscode.com> | 2013-10-24 15:49:21 -0700 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2013-10-24 16:28:14 -0700 |
commit | 667f072ac6eb764d39708aae2f304f031b98d0ce (patch) | |
tree | 14d4909560df2c681b0b7cbda527a66efca7f77a | |
parent | cd7ccaea726f3f9d98f9df3f5d56bb22b290f490 (diff) | |
download | chef-667f072ac6eb764d39708aae2f304f031b98d0ce.tar.gz |
Stacktrace should be hidden by default
In testing, some errors were showing a full stacktrace when not using
-l debug.
-rw-r--r-- | lib/chef/client.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/client.rb b/lib/chef/client.rb index 04d6799988..30b714cded 100644 --- a/lib/chef/client.rb +++ b/lib/chef/client.rb @@ -197,8 +197,8 @@ class Chef begin Chef::Log.debug "Forked instance now converging" do_run - rescue Exception - Chef::Log.error $! + rescue Exception => e + Chef::Log.error(e.to_s) exit 1 else exit 0 |