diff --git a/src/caosdb/exceptions.py b/src/caosdb/exceptions.py
index 3b3d2ce4c23907f62ec1515e853c3eb2aeef7013..5279071587ceb7402502ee52868aa005c0465ef9 100644
--- a/src/caosdb/exceptions.py
+++ b/src/caosdb/exceptions.py
@@ -369,8 +369,8 @@ class EntityError(TransactionError):
 
     def _repr_head(self, indent):
         if hasattr(self, 'entity') and self.entity is not None:
-            return (str(type(self.entity).__name__).upper() + " (" +
-                    str(self.entity.id) + (("," + "'" + str(self.entity.name) + "'") if
+            return (str(type(self.entity).__name__).upper() + " (id: " +
+                    str(self.entity.id) + ((", name: " + "'" + str(self.entity.name) + "'") if
                                            self.entity.name is not None else '') + ") CAUSED " +
                     TransactionError._repr_head(self, indent))
         else: