Project

Profile

Help

Bug #2570

closed

Wrong exit code on error (XQuery command line)

Added by Ruvim Pinka almost 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Command Line
Sprint/Milestone:
Start date:
2016-01-03
Due date:
% Done:

100%

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

Description

In some cases exit code is 0 when it should be non zero.

Testcase (on Windows):

java -classpath /path/to/saxon9he.jar net.sf.saxon.Query -qs:"node-without-context"
echo exitcode=%ERRORLEVEL%

Output:

Error at char 20 in query on line 1
  XPDY0002: The context item for axis step ./node-without-context is absent
Query failed with dynamic error: The context item for axis step ./node-without-context is absent
exitcode=0

Saxon version is: Saxon-HE 9.7.0.1J

Please register to edit this issue

Also available in: Atom PDF