lib/fbo/parser.rb in fbo-0.1.4 vs lib/fbo/parser.rb in fbo-0.1.5

- old
+ new

@@ -31,10 +31,11 @@ tree = parser.parse(data) if tree.nil? line = parser.failure_line column = parser.failure_column reason = parser.failure_reason - raise Exception, "Parse error at line #{ line }, column #{ column }: #{ reason }" + raise FBO::ParserError.new("Could not parse data: line #{ line }, column #{ column }, reason '#{ reason }'", + data:data) end clean_tree(tree) end def parse_collection(data)