Bogus error message/location from mistaken catch clause
Bug #1192007 reported by
Chris Hillery
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
New
|
High
|
Nicolae Brinza |
Bug Description
declare variable $local:error as xs:QName := xs:QName(
declare function local:foo() as item()*
{
error(
};
try {
local:foo()
}
catch $local:error {
"foo"
}
The error is "catch $local:error", which should be "catch local:error". However, the error message is
</tmp/foo.xq>:6,2: static error [err:XPST0003]: invalid expression: syntax error, missing semicolon ";" after declaration.
where line 6 is the end of the "declare function". So the location is wrong, and the error message actually reports something that is not true (there IS a semicolon after the declaration).
Changed in zorba: | |
assignee: | nobody → Nicolae Brinza (nbrinza) |
milestone: | none → 3.0 |
importance: | Undecided → High |
Changed in zorba: | |
milestone: | 3.0 → none |
To post a comment you must log in.