From 027b0ce75dafaa6b4febb205f5489495c224ceef Mon Sep 17 00:00:00 2001
From: Florian Spreckelsen <f.spreckelsen@indiscale.com>
Date: Tue, 26 Mar 2024 13:23:27 +0100
Subject: [PATCH] FIX: Raise correct error and make error message more
 understandable

---
 src/caoscrawler/identifiable_adapters.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/caoscrawler/identifiable_adapters.py b/src/caoscrawler/identifiable_adapters.py
index 3a9b8819..d95112ee 100644
--- a/src/caoscrawler/identifiable_adapters.py
+++ b/src/caoscrawler/identifiable_adapters.py
@@ -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
 
-- 
GitLab