Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors thrown by NodeBase.extract_attr_value don't include the offending value #3

Open
dmolesUC opened this issue Apr 28, 2016 · 0 comments

Comments

@dmolesUC
Copy link
Owner

Right now, e.g., passing an invalid date string to DateNode produces, e.g.:

invalid date
/dash2/apps/dash2-harvester/shared/bundle/ruby/2.2.0/gems/xml-mapping_extensions-0.3.4/lib/xml/mapping_extensions/date_node.rb:23:in `xmlschema'
/dash2/apps/dash2-harvester/shared/bundle/ruby/2.2.0/gems/xml-mapping_extensions-0.3.4/lib/xml/mapping_extensions/date_node.rb:23:in `to_value'
/apps/dash2/apps/dash2-harvester/shared/bundle/ruby/2.2.0/gems/xml-mapping_extensions-0.3.4/lib/xml/mapping_extensions/node_base.rb:27:in `extract_attr_value'
/dash2/apps/dash2-harvester/shared/bundle/ruby/2.2.0/gems/xml-mapping-0.10.0/lib/xml/mapping/base.rb:680:in `xml_to_obj'

This would be more useful with both the field name and the offending value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant