diff --git a/exist-core/src/main/java/org/exist/xquery/functions/fn/FunExactlyOne.java b/exist-core/src/main/java/org/exist/xquery/functions/fn/FunExactlyOne.java index 2eea72faab9..588f0b47206 100644 --- a/exist-core/src/main/java/org/exist/xquery/functions/fn/FunExactlyOne.java +++ b/exist-core/src/main/java/org/exist/xquery/functions/fn/FunExactlyOne.java @@ -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())