Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Handle parse error when type cannot be determined

  • Loading branch information...
commit f5408af38f2e09bad46c6ebc00d25aca15594bf8 1 parent f376b50
@jcla1 authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.