Method: JSONSchemer::Result#error
- Defined in:
- lib/json_schemer/result.rb
#error ⇒ Object
25 26 27 28 29 30 31 32 |
# File 'lib/json_schemer/result.rb', line 25 def error return @error if defined?(@error) resolved_instance_location = Location.resolve(instance_location) @error = source.error( :formatted_instance_location => resolved_instance_location.empty? ? 'root' : "`#{resolved_instance_location}`", :details => details ) end |