lib/metanorma/standoc/ref_queue.rb in metanorma-standoc-2.7.1 vs lib/metanorma/standoc/ref_queue.rb in metanorma-standoc-2.7.2

- old
+ new

@@ -41,11 +41,11 @@ (1..size).each.with_object([]) do |_, m| ref, i, doc = results.pop m[i.to_i] = { ref: ref } if doc.is_a?(RelatonBib::RequestError) @log.add("Bibliography", nil, "Could not retrieve #{ref[:code]}: " \ - "no access to online site") + "no access to online site", severity: 1) else m[i.to_i][:doc] = doc end end end def joint_entries(out, joint_prep) @@ -136,10 +136,10 @@ hit = fetch_ref1(code, year, opts) or return nil xml.parent.add_child(smart_render_xml(hit, code, opts)) xml rescue RelatonBib::RequestError @log.add("Bibliography", nil, "Could not retrieve #{code}: " \ - "no access to online site") + "no access to online site", severity: 1) nil end def supply_ref_prefix(ret) ret