lib/libis/services/scope/search.rb in libis-services-0.1.9 vs lib/libis/services/scope/search.rb in libis-services-0.1.10
- old
+ new
@@ -38,9 +38,11 @@
File.delete(err_file) rescue nil
@doc = nil
raise RuntimeError, "Scope search failed: '#{msg}'. Details: '#{detail}'"
elsif File.exist? md_file
@doc = Libis::Tools::XmlDocument.open(md_file)
+ File.delete(md_file) rescue nil
+ @doc
else
raise RuntimeError, 'Scope search did not generate expected result file.'
end
end