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)
|
def initialize(attr, value)
|
||||||
@attr = attr
|
@attr = attr
|
||||||
msg = "invalid attribute: #{attr}"
|
super "invalid attribute: #{attr} (#{value.inspect})"
|
||||||
msg << " (#{value.inspect})" unless value.empty?
|
|
||||||
super msg
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user