From bfa2d67ff7b80dee6a7b2fa5d75f8d3428a30611 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 23 Dec 2014 15:36:44 -0500 Subject: Always show attribute value in validation error message --- Library/Homebrew/exceptions.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index d938b52e2..949eee233 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -27,9 +27,7 @@ class FormulaValidationError < StandardError def initialize(attr, value) @attr = attr - msg = "invalid attribute: #{attr}" - msg << " (#{value.inspect})" unless value.empty? - super msg + super "invalid attribute: #{attr} (#{value.inspect})" end end -- cgit v1.2.3