Permalink
Browse files

Handle parse error when type cannot be determined

  • Loading branch information...
1 parent f376b50 commit f5408af38f2e09bad46c6ebc00d25aca15594bf8 @jcla1 committed Oct 12, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/hn2json/entity.rb
View
1 lib/hn2json/entity.rb
@@ -79,6 +79,7 @@ def get_attrs
when :discussion
@parser.get_attrs_discussion self
when :error
+ raise ParseError, "Parser could not determine type on #{@id}"
end
end

0 comments on commit f5408af

Please sign in to comment.