Skip to content
Snippets Groups Projects
Commit 1b1a73bd authored by Jack Nagel's avatar Jack Nagel
Browse files

Always show attribute value in validation error message

parent e8e5889d
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment