Commit caad58d1 authored by mrodzis's avatar mrodzis 🌿
Browse files

Fix #113.

parent 9cc685c6
......@@ -60,7 +60,11 @@ declare function etTransfo:complete() {
error(QName("error", "ETTRANSFO02"), "An error occured while creating the whole TEI base for print.")
},
etTransfo:tidy-logs(),
etTransfo:report-errors()
try {
etTransfo:report-errors()
} catch * {
error(QName("error", "ETTRANSFO15"), "An error occured while reporting errors.")
}
};
(:~
......@@ -466,7 +470,7 @@ declare function etTransfo:tidy-logs() as item()* {
declare function etTransfo:report-errors() as item()* {
let $log-path := $etTransfo:coll || "logs/"
return
if(normalize-space(xmldb:get-child-resources($log-path)) = "") then
if(normalize-space(string-join(xmldb:get-child-resources($log-path), "")) = "") then
util:log-system-out("No errors found while creating the edited text! Yay!")
else
(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment