Always show attribute value in validation error message
This commit is contained in:
parent
e8e5889d32
commit
1b1a73bddb
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user