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

XML parser should raise when encountering errors. #68

Open
justfalter opened this issue Sep 4, 2014 · 0 comments
Open

XML parser should raise when encountering errors. #68

justfalter opened this issue Sep 4, 2014 · 0 comments

Comments

@justfalter
Copy link
Member

Right now, it just stops parsing and does not raise any exceptions.

This example does not raise any exceptions, and the block is never executed.

pattern = Threatinator::Parsers::XML::Pattern.new('/foo')
parser = Threatinator::Parsers::XML::Parser.new(pattern: pattern)
sio = StringIO.new("<foo><bar></foo>")
parser.run(sio) do |record|
   puts "never gets run"
end
@justfalter justfalter modified the milestones: Version 0.2.0, Version 0.2.1 Sep 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant