diff --git a/src/caoscrawler/crawl.py b/src/caoscrawler/crawl.py index c77dcee1f29eac69732ce353e0271761eca2df13..40e3830efed62aa9caa2d7b8f5f3fb62c1fa18da 100644 --- a/src/caoscrawler/crawl.py +++ b/src/caoscrawler/crawl.py @@ -712,7 +712,7 @@ class Crawler(object): # TODO: can the following be removed at some point for ent in flat: if ent.role == "Record" and len(ent.parents) == 0: - raise RuntimeError("Records must have a parent.") + raise RuntimeError(f"Records must have a parent.\n{ent}") resolved_references = True # flat contains Entities which could not yet be checked against the remote server @@ -1023,7 +1023,7 @@ class Crawler(object): to_be_updated = self.remove_unnecessary_updates(to_be_updated, identified_records) logger.info(f"Going to insert {len(to_be_inserted)} Entities and update " - f"{len(to_be_inserted)} Entities.") + f"{len(to_be_updated)} Entities.") if commit_changes: self.execute_parent_updates_in_list(to_be_updated, securityMode=self.securityMode, run_id=self.run_id, unique_names=unique_names)