aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-12-23 15:36:44 -0500
committerJack Nagel2014-12-23 15:37:24 -0500
commit1b1a73bddb0a241ee810634f4aeb163245a70c18 (patch)
tree9085ac9fdd5be42f8ba1f0c2ebfdcb80dcd46480 /Library
parente8e5889d32999738f606782fab19e0b0f7798392 (diff)
downloadbrew-1b1a73bddb0a241ee810634f4aeb163245a70c18.tar.bz2
Always show attribute value in validation error message
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/exceptions.rb4
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