Fix the parser to return the correct line number for the error location when returning an
error.
Comments: if parse error is in a substrate query then line number is still incorrect
error.
Comments: if parse error is in a substrate query then line number is still incorrect