diff options
| author | Jack Nagel | 2014-12-23 15:36:44 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-12-23 15:37:24 -0500 | 
| commit | bfa2d67ff7b80dee6a7b2fa5d75f8d3428a30611 (patch) | |
| tree | 7c41858eb978cd0df54b4c7075d18975489ddd6d /Library/Homebrew/exceptions.rb | |
| parent | 4a957ffbf521999ea04603c15ea6aa08fd3b5a05 (diff) | |
| download | homebrew-bfa2d67ff7b80dee6a7b2fa5d75f8d3428a30611.tar.bz2 | |
Always show attribute value in validation error message
Diffstat (limited to 'Library/Homebrew/exceptions.rb')
| -rw-r--r-- | Library/Homebrew/exceptions.rb | 4 | 
1 files changed, 1 insertions, 3 deletions
| 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 | 
