Hi BaseX team,
I wonder why I can't use admin:write-log as output of an updating function
Using
...
return if(file:is-file($path)) then ( try { file:delete($path) } catch * { admin:write-log('Could not delete image file ' || $path) (: works with update:output('...'):) } , delete node $img ) else ( delete node $img )
I get the error
*Expressions must all be updating or return an empty sequence.*
Kind regards