Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
  • 3 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/org/exist/xquery/functions/fn/ParsingFunctions.java
View
4 src/org/exist/xquery/functions/fn/ParsingFunctions.java
@@ -119,7 +119,7 @@ public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathExce
} catch (final SAXException e) {
logger.debug("Error while parsing XML: " + e.getMessage(), e);
} catch (final IOException e) {
- throw new XPathException(this, ErrorCodes.FODC0006, "Error while parsing XML: " + e.getMessage(),
+ throw new XPathException(this, ErrorCodes.FODC0006, ErrorCodes.FODC0006.getDescription() + ": " + e.getMessage(),
args[0], e);
}
@@ -139,7 +139,7 @@ public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathExce
} else {
final MemTreeBuilder builder = context.getDocumentBuilder();
final NodeImpl result = Shared.writeReport(report, builder);
- throw new XPathException(this, ErrorCodes.FODC0006, report.toString(), result);
+ throw new XPathException(this, ErrorCodes.FODC0006, ErrorCodes.FODC0006.getDescription() + ": " + report.toString(), result);
}
}
}

No commit comments for this range

Something went wrong with that request. Please try again.