Skip to content

Commit b638698

Browse files
[MIN] err:FOUT1170: better error message
1 parent 622d4d0 commit b638698

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

basex-core/src/main/java/org/basex/query/QueryError.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ public enum QueryError {
775775
PARSE_URI_X(FOUR, 1, "Invalid IPv6/IPvFuture authority: %."),
776776

777777
/** Error code. */
778-
RESWHICH_X(FOUT, 1170, "Resource '%' cannot be retrieved."),
778+
RESWHICH_X(FOUT, 1170, "Resource cannot be retrieved: %."),
779779
/** Error code. */
780780
RESFRAG_X(FOUT, 1170, "URI contains a fragment identifier: %."),
781781
/** Error code. */

basex-core/src/main/java/org/basex/query/func/fn/ParseFn.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,7 @@ protected Value doc(final QueryContext qc) throws QueryException {
125125
} catch(final InputException ex) {
126126
throw exception(ex);
127127
} catch(final IOException ex) {
128-
Util.debug(ex);
129-
throw RESWHICH_X.get(info, io);
128+
throw RESWHICH_X.get(info, io + " (" + Util.info(ex) + ')');
130129
}
131130
}
132131

0 commit comments

Comments
 (0)