update parser.js, add more explicit error message

it helps when debugging problems if you can figure out what the actual error was.
Merge pull request #34 from damianb/verbose-parser-error

update parser.js, add more explicit error message