Improve error messages for syntax errors, now displays line number