Improved parser error reporting