diff options
author | Ralph Amissah <ralph@amissah.com> | 2012-05-12 00:42:03 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2012-05-12 00:42:03 -0400 |
commit | 99965a524e09c324e0820990d4332e9d0df94bbd (patch) | |
tree | 3f92a5780184c39039aa87438b8c0a7e8eb76e11 /lib/sisu/v3/xml.rb | |
parent | v3: 3.2.8 version & changelog "opened" (diff) |
v3: rescue & error warnings, more touched
Diffstat (limited to 'lib/sisu/v3/xml.rb')
-rw-r--r-- | lib/sisu/v3/xml.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/sisu/v3/xml.rb b/lib/sisu/v3/xml.rb index aa75e139..0b2467f2 100644 --- a/lib/sisu/v3/xml.rb +++ b/lib/sisu/v3/xml.rb @@ -93,7 +93,10 @@ module SiSU_XML_SAX SiSU_Screen::Ansi.new(@opt.cmd,@opt.fns,"file://#{@md.file.output_path.xml_sax.dir}/#{@md.file.base_filename.xml_sax}").flow if @opt.cmd =~/[MV]/ end SiSU_XML_SAX::Source::Songsheet.new(@particulars).song - rescue; SiSU_Errors::InfoError.new($!,$@,@opt.cmd,@opt.fns).error + rescue + SiSU_Errors::InfoError.new($!,$@,@opt.cmd,@opt.fns).error do + __LINE__.to_s + ':' + __FILE__ + end ensure #file closed in songsheet end @@ -109,7 +112,10 @@ module SiSU_XML_SAX SiSU_XML_SAX::Source::Scroll.new(@particulars).songsheet SiSU_XML_SAX::Source::Tidy.new(@md,@file.place_file.xml_sax.dir).xml if @md.opt.cmd =~/[vVM]/ # test wellformedness, comment out when not in use SiSU_Rexml::Rexml.new(@md,@file.place_file.xml_sax.dir).xml if @md.opt.cmd =~/M/ # test rexml parsing, comment out when not in use #debug - rescue; SiSU_Errors::InfoError.new($!,$@,@md.opt.cmd,@md.fns).error + rescue + SiSU_Errors::InfoError.new($!,$@,@md.opt.cmd,@md.fns).error do + __LINE__.to_s + ':' + __FILE__ + end ensure end end |