Custom error for unexpected token

This makes it clearer to the compiler where we are throwing.
Expect the unexpected
Correct index for tokens