summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Caldwell <andrew.caldwell@metaswitch.com>2013-11-07 12:22:50 +0000
committerAndy Caldwell <andrew.caldwell@metaswitch.com>2013-11-07 12:22:50 +0000
commit14aafdbea8c27f0ffd45f0224896384802c6a7a6 (patch)
tree545069f34cd24c975595ec92855dba33d722571a
parentecbc917ac5496f3138b798332ea66f477c33f8ba (diff)
downloadchef-14aafdbea8c27f0ffd45f0224896384802c6a7a6.tar.gz
Handle sections without text parameters
* Allows interop with gems that throw custom exceptions without string messages.
-rw-r--r--lib/chef/formatters/error_descriptor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/formatters/error_descriptor.rb b/lib/chef/formatters/error_descriptor.rb
index 3f0756df73..c2e656f167 100644
--- a/lib/chef/formatters/error_descriptor.rb
+++ b/lib/chef/formatters/error_descriptor.rb
@@ -31,7 +31,7 @@ class Chef
end
def section(heading, text)
- @sections << {heading => text}
+ @sections << {heading => (text or "")}
end
def display(out)