'Verify Augeas can parse all of the lens files.
:param str lens: lens to check for errors
:raises .errors.PluginError: If there has been an error in parsing with
the specified lens.'

def check_parsing_errors(self, lens):

    error_files = self.aug.match('/augeas//error')
    for path in error_files:
        lens_path = self.aug.get((path + '/lens'))
        if (lens_path and (lens in lens_path)):
            msg = 'There    has    been    an    error    in    parsing    the    file    {0}    on    line    {1}:    {2}'.format(path[13:(len(path) - 6)], self.aug.get((path + '/line')), self.aug.get((path + '/message')))
            raise errors.PluginError(msg)
