Duplicate error messages when fetching wrong IRI
When fetching wrong IRI e.g. http://tpl.ottr.xyz/rdf/0.1/type
instead of http://tpl.ottr.xyz/rdf/0.1/Type
, lutra parses the IRI for each format(wOTTR and stOTTR), resulting in duplicate error messages. Should rather catch the error once.
Output now:
# [ERROR] Attempts of parsing library on all available formats {wottr=xyz.ottr.lutra.wottr.WottrFormat@30b975ad, stottr=xyz.ottr.lutra.stottr.StottrFormat@1e9469b8, tabottr=xyz.ottr.lutra.tabottr.TabottrFormat@75e09567, bottr=xyz.ottr.lutra.bottr.BottrFormat@2a334bac} failed with following errors:
# [ERROR] Attempt of parsing templates as xyz.ottr.lutra.stottr.parser.STemplateParser@55651434 format failed:
# [ERROR] Reading stOTTR file: 'http://tpl.ottr.xyz/rdf/0.1/type'.
http:/tpl.ottr.xyz/rdf/0.1/type
# [ERROR] Attempt of parsing templates as xyz.ottr.lutra.wottr.parser.WTemplateParser@120d3fd format failed:
# [ERROR] RDF parsing error in: http://tpl.ottr.xyz/rdf/0.1/type
404 - Not Found
# [WARNING] Failed fetching template: http://tpl.ottr.xyz/rdf/0.1/type