diff options
author | tylercloke <tyler@opscode.com> | 2012-08-22 16:50:39 -0700 |
---|---|---|
committer | tylercloke <tyler@opscode.com> | 2012-09-20 12:51:39 -0700 |
commit | a57ed5a9b22411fb5e952223b61d5c0594fd46fe (patch) | |
tree | 5d084bd4cf4fdbcf9bea9acbb20d06a5323345db /chef/lib | |
parent | f99c0e9a7dd12fca887d40bf86750edd1290547c (diff) | |
download | chef-a57ed5a9b22411fb5e952223b61d5c0594fd46fe.tar.gz |
Removed formatting from error reporting.
Diffstat (limited to 'chef/lib')
-rw-r--r-- | chef/lib/chef/resource_reporter.rb | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/chef/lib/chef/resource_reporter.rb b/chef/lib/chef/resource_reporter.rb index f3f0196cde..6b357dd731 100644 --- a/chef/lib/chef/resource_reporter.rb +++ b/chef/lib/chef/resource_reporter.rb @@ -199,23 +199,9 @@ class Chef run_data["data"] = {} if @exception run_data["data"]["class"] = @exception.class - - if (!@exception.message.nil?) - #@exception.message = "<p>" + @exception.message + "</p>" - #@exception.message["\\n"] = "</p><p>" - end run_data["data"]["message"] = @exception.message - - if (!@error_description.nil?) - @error_description["\n"] = "<\p><p>" - @error_description.insert(0, "<p>") - @error_description << "</p>" - end run_data["data"]["description"] = @error_description - - run_data["data"]["stacktrace"] = @exception.backtrace.join("</p><p>") - run_data["data"]["stacktrace"].insert(0, "<p>") - run_data["data"]["stacktrace"] << "</p>" + run_data["data"]["stacktrace"] = @exception.backtrace.join("\n") else run_data["data"]["description"] = @error_descriptions end |