summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2013-10-24 15:49:21 -0700
committerdanielsdeleo <dan@opscode.com>2013-10-24 16:28:14 -0700
commit667f072ac6eb764d39708aae2f304f031b98d0ce (patch)
tree14d4909560df2c681b0b7cbda527a66efca7f77a
parentcd7ccaea726f3f9d98f9df3f5d56bb22b290f490 (diff)
downloadchef-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.rb4
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