Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
fontane-notizbuecher
SADE
Commits
46905f9c
Commit
46905f9c
authored
Aug 23, 2019
by
mrodzis
🌿
Browse files
Merge branch 'bugfix/
#113
-error-logs' into 'develop'
Fix
#113
. Closes
#113
See merge request
!49
parents
9cc685c6
caad58d1
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
modules/fontane/edited-text/etTransfo.xqm
View file @
46905f9c
...
...
@@ -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
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment