Report query syntax errors more accurately.