Project

Profile

Help

Bug #5606

closed

Duplicate source error message in exception (Saxon 11)

Added by Radu Coravu over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Diagnostics
Sprint/Milestone:
-
Start date:
2022-07-15
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
11, trunk
Fix Committed on Branch:
11, trunk
Fixed in Maintenance Release:
Platforms:

Description

In the method net.sf.saxon.resource.ActiveSAXSource.deliver(Receiver, ParseOptions) there is this throw:

 throw new XPathException("I/O error reported by XML parser processing " +
                                             getSystemId() + ": " + err.getMessage(), err);

which adds the source message to the initial message. But the method "net.sf.saxon.trans.XPathException.getMessage()" again uses the exception source message. So you end up with a reported error message which contains the same message twice like:

I/O error reported by XML parser processing : file not found: file not found


Related issues

Related to SaxonC - Bug #5561: misleading error message on failure to find external DTDNewO'Neil Delpratt2022-06-11

Actions

Please register to edit this issue

Also available in: Atom PDF