Fix #183 where parser errors were reported much earlier than they occurred