Commit c36670ab authored by Mathias Goebel's avatar Mathias Goebel 🎠

report instead of fial on unknown file format

parent 37a11562
......@@ -216,10 +216,7 @@ declare function tgconnect:publish( $uri as xs:string,
xmldb:store($targetPath || "/data", $name, $text, "text/plain")
return $name
default return
error(
QName("https://sade.textgrid.de/ns/error", "PUBLISH08"),
"The publisher does not know how to handle " || string($meta//tgmd:format) || "."
)
"The publisher does not know how to handle " || string($meta//tgmd:format) || "."
else
error(
......
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