From 2d83ba2781804f6d9f8c6a87e4634c13a36649d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <h.tomwoerden@indiscale.com> Date: Mon, 3 Jun 2024 14:00:08 +0200 Subject: [PATCH] DOC: better error message --- src/caoscrawler/sync_node.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/caoscrawler/sync_node.py b/src/caoscrawler/sync_node.py index 811c7445..fa9526e6 100644 --- a/src/caoscrawler/sync_node.py +++ b/src/caoscrawler/sync_node.py @@ -101,9 +101,10 @@ class SyncNode: ): raise ValueError( "The SyncNode that is used with update must have an equivalent" - f" identifiable. The identifiables where:\n" - f"{self.identifiable.get_representation()}\n" - f"and\n{other.identifiable.get_representation()}." + f" identifiable. I.e. you cannot merge entities with differing identifiables" + "The identifiables where:\n" + f"{Identifiable._create_hashable_string(self)}\n" + f"and\n{Identifiable._create_hashable_string(other)}." ) if other.identifiable: -- GitLab