We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74f8d30 commit be26d42Copy full SHA for be26d42
src/org/exist/xquery/functions/map/MapExpr.java
@@ -48,7 +48,7 @@ public Sequence eval(Sequence contextSequence, final Item contextItem) throws XP
48
for (final Mapping mapping : this.mappings) {
49
final Sequence key = mapping.key.eval(contextSequence);
50
if (key.getItemCount() != 1) {
51
- throw new XPathException(MapErrorCode.EXMPDY001, "Expected single value for key, got " + key.getItemCount());
+ throw new XPathException(this, MapErrorCode.EXMPDY001, "Expected single value for key, got " + key.getItemCount());
52
}
53
final AtomicValue atomic = key.itemAt(0).atomize();
54
final Sequence value = mapping.value.eval(contextSequence);
0 commit comments