Confusing error message

Bug #867227 reported by William Candillon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
Medium
Nicolae Brinza

Bug Description

The following query:
for $test in (1 to 10)
return if(true()) then {
 true();
 1
} else {

}

true()

outputs:
:9,1: static error [err:XPST0003]: invalid expression: syntax error, unexpected "QName", expecting "end of file";

However this message is not explicit about what's wrong in the query above.

Related branches

Revision history for this message
Matthias Brantner (matthias-brantner) wrote :

Nicolae, do you think you can hack the parser to produce a better (more meaningful) error message for such cases?

Changed in zorba:
milestone: none → 2.7
Changed in zorba:
status: New → Fix Committed
Changed in zorba:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.