Skip to content

Commit

Permalink
[bugfix] Fix error code in fn:exactly-one
Browse files Browse the repository at this point in the history
  • Loading branch information
adamretter committed Oct 10, 2024
1 parent e2fba83 commit 52fc06d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public Sequence eval(Sequence contextSequence, Item contextItem) throws XPathExc
if (LOG.isTraceEnabled()) {
logger.trace("fn:exactly-one called with a sequence containing {} items", result.getItemCount());
}
throw new XPathException(this, ErrorCodes.FOCA0005, "fn:exactly-one called with a sequence containing " + result.getItemCount() + " items", result);
throw new XPathException(this, ErrorCodes.FORG0005, "fn:exactly-one called with a sequence containing " + result.getItemCount() + " items", result);
}

if (context.getProfiler().isEnabled())
Expand Down

0 comments on commit 52fc06d

Please sign in to comment.