better exception messages for Parser