diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-03 13:57:18 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-03 13:57:18 +0000 |
commit | a0657cd5d74bd355545ab5a1cbc583dcaa9d1fd8 (patch) | |
tree | 86b0c9e5725b4ea76b1481c78d918ac6e3e5206e /lib/rexml | |
parent | 1c6ff586a66693cddafe852526ebde0d89481576 (diff) | |
download | ruby-a0657cd5d74bd355545ab5a1cbc583dcaa9d1fd8.tar.gz |
* lib/rexml/parsers/treeparser.rb (REXML::Parsers::TreeParser#parse):
Remove needless nested parse exception information.
[Bug #8844] [ruby-dev:47672]
Reported by Ippei Obayashi. Thanks!!!
* test/rexml/parser/test_tree.rb: Add a test for the above case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml')
-rw-r--r-- | lib/rexml/parsers/treeparser.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/parsers/treeparser.rb b/lib/rexml/parsers/treeparser.rb index 7f618cb319..4dd1b90590 100644 --- a/lib/rexml/parsers/treeparser.rb +++ b/lib/rexml/parsers/treeparser.rb @@ -89,7 +89,7 @@ module REXML end rescue REXML::Validation::ValidationException raise - rescue REXML::UndefinedNamespaceException + rescue REXML::ParseException raise rescue raise ParseException.new( $!.message, @parser.source, @parser, $! ) |