Project

General

Profile

Bug #8844 ยป rexml-nested-parseerror.diff

ohai (Ippei Obayashi), 08/31/2013 01:29 PM

View differences:

lib/rexml/parsers/treeparser.rb
24 24
            case event[0]
25 25
            when :end_document
26 26
              unless tag_stack.empty?
27
                #raise ParseException.new("No close tag for #{tag_stack.inspect}")
28
                raise ParseException.new("No close tag for #{@build_context.xpath}")
27
                raise ParseException.new("No close tag for #{@build_context.xpath}",
28
                                         @parser.source, @parser)
29 29
              end
30 30
              return
31 31
            when :start_element
......
89 89
          end
90 90
        rescue REXML::Validation::ValidationException
91 91
          raise
92
        rescue REXML::UndefinedNamespaceException
92
        rescue REXML::ParseException
93 93
          raise
94 94
        rescue
95 95
          raise ParseException.new( $!.message, @parser.source, @parser, $! )