🐛 fix(base.py): include vertex ID in error message to provide more context when building a node fails

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-10-19 09:25:53 -03:00
commit 0286353695

View file

@ -359,7 +359,7 @@ class Vertex:
except Exception as exc: except Exception as exc:
logger.exception(exc) logger.exception(exc)
raise ValueError( raise ValueError(
f"Error building node {self.vertex_type}: {str(exc)}" f"Error building node {self.vertex_type}(ID:{self.id}): {str(exc)}"
) from exc ) from exc
def _update_built_object_and_artifacts(self, result): def _update_built_object_and_artifacts(self, result):