diff options
Diffstat (limited to 'lib/chef/formatters/base.rb')
-rw-r--r-- | lib/chef/formatters/base.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/formatters/base.rb b/lib/chef/formatters/base.rb index b2a8c8099b..2ac1274c37 100644 --- a/lib/chef/formatters/base.rb +++ b/lib/chef/formatters/base.rb @@ -51,8 +51,8 @@ class Chef #-- # TODO: is it too clever to be defining new() on a module like this? def self.new(name, out, err) - formatter_class = by_name(name.to_s) or - raise UnknownFormatter, "No output formatter found for #{name} (available: #{available_formatters.join(', ')})" + (formatter_class = by_name(name.to_s)) || + raise(UnknownFormatter, "No output formatter found for #{name} (available: #{available_formatters.join(', ')})") formatter_class.new(out, err) end |