Skip to content

Commit ec80946

Browse files
committed
[bugfix] Add mising Error code
1 parent 0d96cc7 commit ec80946

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exist-core/src/main/java/org/exist/xquery/Function.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ private Expression checkArgumentType(Expression argument, @Nullable final Sequen
305305
//Because () is seen as a node
306306
(argType.getCardinality().isSuperCardinalityOrEqualOf(Cardinality.EMPTY_SEQUENCE) && returnType == Type.NODE))) {
307307
LOG.debug(ExpressionDumper.dump(argument));
308-
throw new XPathException(this, Messages.getMessage(Error.FUNC_PARAM_TYPE_STATIC,
308+
throw new XPathException(this, ErrorCodes.XPTY0004, Messages.getMessage(Error.FUNC_PARAM_TYPE_STATIC,
309309
String.valueOf(argPosition), mySignature, argType.toString(), Type.getTypeName(returnType)));
310310
}
311311
}

0 commit comments

Comments
 (0)