Skip to content

Commit

Permalink
[bugfix] Add mising Error code
Browse files Browse the repository at this point in the history
  • Loading branch information
adamretter committed Jun 15, 2022
1 parent 0d96cc7 commit ec80946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exist-core/src/main/java/org/exist/xquery/Function.java
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ private Expression checkArgumentType(Expression argument, @Nullable final Sequen
//Because () is seen as a node
(argType.getCardinality().isSuperCardinalityOrEqualOf(Cardinality.EMPTY_SEQUENCE) && returnType == Type.NODE))) {
LOG.debug(ExpressionDumper.dump(argument));
throw new XPathException(this, Messages.getMessage(Error.FUNC_PARAM_TYPE_STATIC,
throw new XPathException(this, ErrorCodes.XPTY0004, Messages.getMessage(Error.FUNC_PARAM_TYPE_STATIC,
String.valueOf(argPosition), mySignature, argType.toString(), Type.getTypeName(returnType)));
}
}
Expand Down

0 comments on commit ec80946

Please sign in to comment.