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.
This commit is contained in:
parent
1ac7555150
commit
8f8203d45d
1 changed files with 2 additions and 2 deletions
|
|
@ -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):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue