Skip to content

Commit

Permalink
update error function signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstadler committed Nov 12, 2019
1 parent fd54a3e commit b703bb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/core.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ declare function core:getOrCreateColl($collName as xs:string, $cacheKey as xs:st
let $lease := function($dateTimeOfCache) as xs:boolean {
config:eXistDbWasUpdatedAfterwards($dateTimeOfCache) and $useCache
}
let $onFailure := function($errCode as item(), $errDesc as item()) {
let $onFailure := function($errCode as item(), $errDesc as item()?) {
core:logToFile('error', concat($errCode, ': ', $errDesc))
}
let $callBack := function() {
Expand Down
2 changes: 1 addition & 1 deletion modules/norm.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import module namespace functx="http://www.functx.com";
declare function norm:get-norm-doc($docType as xs:string) as document-node()? {
let $fileName := 'normFile-' || $docType || '.xml'
let $docURI := str:join-path-elements(($config:tmp-collection-path, $fileName))
let $onFailureFunc := function($errCode, $errDesc) {
let $onFailureFunc := function($errCode as item(), $errDesc as item()?) {
core:logToFile('error', string-join(('norm:get-norm-doc: Unsupported docType ' || $docType, $errCode, $errDesc), ' ;; '))
}
let $lease := function($currentDateTimeOfFile as xs:dateTime?) as xs:boolean { wega-util:check-if-update-necessary($currentDateTimeOfFile, ()) }
Expand Down

0 comments on commit b703bb6

Please sign in to comment.