diff options
author | Andy Caldwell <andrew.caldwell@metaswitch.com> | 2013-11-07 12:22:50 +0000 |
---|---|---|
committer | Andy Caldwell <andrew.caldwell@metaswitch.com> | 2013-11-07 12:22:50 +0000 |
commit | 14aafdbea8c27f0ffd45f0224896384802c6a7a6 (patch) | |
tree | 545069f34cd24c975595ec92855dba33d722571a /lib/chef/formatters | |
parent | ecbc917ac5496f3138b798332ea66f477c33f8ba (diff) | |
download | chef-14aafdbea8c27f0ffd45f0224896384802c6a7a6.tar.gz |
Handle sections without text parameters
* Allows interop with gems that throw custom exceptions without string messages.
Diffstat (limited to 'lib/chef/formatters')
-rw-r--r-- | lib/chef/formatters/error_descriptor.rb | 2 |
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) |