diff options
Diffstat (limited to 'lib/wsdl/importer.rb')
-rw-r--r-- | lib/wsdl/importer.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/wsdl/importer.rb b/lib/wsdl/importer.rb index fac02b51a0..873be710b5 100644 --- a/lib/wsdl/importer.rb +++ b/lib/wsdl/importer.rb @@ -25,6 +25,7 @@ class Importer end def import(location) + STDERR.puts("importing: #{location}") if $DEBUG content = nil if FileTest.exist?(location) content = File.open(location).read @@ -42,12 +43,8 @@ class Importer begin WSDL::Parser.new(opt).parse(content) rescue WSDL::Parser::ParseError => orgexcn - begin - require 'wsdl/xmlSchema/parser' - WSDL::XMLSchema::Parser.new(opt).parse(content) - rescue - raise orgexcn - end + require 'wsdl/xmlSchema/parser' + WSDL::XMLSchema::Parser.new(opt).parse(content) end end |