def METHOD_NAME(raw_files, caplog):
    mainfile = os.path.join(os.path.dirname(__file__), '../data/datamodel/eln.archive.yaml')
    # parse
    parser = ArchiveParser()
    test_archive = EntryArchive(metadata=EntryMetadata())
    with pytest.raises(Exception):
        parser.parse(mainfile, test_archive, get_logger(__name__))
    has_error = False
    for record in caplog.get_records(when='call'):
        if record.levelname == 'ERROR':
            has_error = True
    assert has_error