Skip to content

Commit 6cc3d93

Browse files
committed
[bugfix] Correct the XDM type for the Sequence holding a representation of a Java Stack Trace when an error occurs
1 parent cef4311 commit 6cc3d93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ private void addFunctionTrace(final Throwable t) throws XPathException {
530530

531531
private void addJavaTrace(final Throwable t) throws XPathException {
532532
final LocalVariable localVar = new LocalVariable(QN_JAVA_STACK_TRACE);
533-
localVar.setSequenceType(new SequenceType(Type.QNAME, Cardinality.ZERO_OR_MORE));
533+
localVar.setSequenceType(new SequenceType(Type.STRING, Cardinality.ZERO_OR_MORE));
534534

535535
final Sequence trace;
536536
if (t != null && t.getStackTrace() != null) {

0 commit comments

Comments
 (0)