From 8f8203d45d4ebb71870180e80bf7e4e34353fb30 Mon Sep 17 00:00:00 2001 From: ogabrielluiz Date: Thu, 13 Jun 2024 01:00:13 -0300 Subject: [PATCH] refactor: Update error message in Vertex class for building Components Update the error message in the Vertex class of base.py to provide more specific information when encountering an error while building Components. Instead of mentioning "vertex", the message now refers to "Component" to align with the terminology used in the codebase. This change improves clarity and consistency in the error messages. --- src/backend/base/langflow/graph/vertex/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/base/langflow/graph/vertex/base.py b/src/backend/base/langflow/graph/vertex/base.py index 4bdcece3c..17d364a03 100644 --- a/src/backend/base/langflow/graph/vertex/base.py +++ b/src/backend/base/langflow/graph/vertex/base.py @@ -608,7 +608,7 @@ class Vertex: logger.exception(e) raise ValueError( f"Params {key} ({self.params[key]}) is not a list and cannot be extended with {result}" - f"Error building vertex {self.display_name}: {str(e)}" + f"Error building Component {self.display_name}: {str(e)}" ) from e def _handle_func(self, key, result): @@ -649,7 +649,7 @@ class Vertex: except Exception as exc: logger.exception(exc) - raise ValueError(f"Error building vertex {self.display_name}: {str(exc)}") from exc + raise ValueError(f"Error building Component {self.display_name}: {str(exc)}") from exc def _update_built_object_and_artifacts(self, result): """