From 52fc06d1a434df4a6059965fb84d1e665b54b374 Mon Sep 17 00:00:00 2001 From: Adam Retter Date: Sun, 15 Oct 2023 14:51:57 +0200 Subject: [PATCH] [bugfix] Fix error code in fn:exactly-one --- .../main/java/org/exist/xquery/functions/fn/FunExactlyOne.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())