Skip to content
Snippets Groups Projects
Commit 027b0ce7 authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

FIX: Raise correct error and make error message more understandable

parent 7386b74f
No related branches found
No related tags found
2 merge requests!178FIX: #96 Better error output for crawl.py script.,!164F fix misleading error
......@@ -236,10 +236,11 @@ startswith: bool, optional
refs.extend(referencing_entities[rtname])
found = True
if not found:
raise NotImplementedError(
raise RuntimeError(
f"Could not find referencing entities of type(s): {prop.value}\n"
f"for registered identifiable:\n{registered_identifiable}\n"
f"There were {len(referencing_entities)} referencing entities to choose from."
f"There were {len(referencing_entities)} referencing entities to choose from.\n"
f"This error can also occur in case of merge conflicts in the referencing entities."
)
return refs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment