when generating a ParserError always report the resource that generated it