mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-12-28 23:48:53 +00:00
Add pip install requirement in the error message for missing depency.
This commit is contained in:
parent
32b2abf9d5
commit
49ed21b82d
@ -121,7 +121,12 @@ class BaseComponent(ABC):
|
||||
@classmethod
|
||||
def get_subclass(cls, component_type: str) -> Type[BaseComponent]:
|
||||
if component_type not in cls._subclasses.keys():
|
||||
raise PipelineSchemaError(f"Haystack component with the name '{component_type}' not found.")
|
||||
raise PipelineSchemaError(
|
||||
f"Haystack component with the name '{component_type}' not found. "
|
||||
"Check the class name of your component for spelling mistakes and make sure you installed "
|
||||
"Haystack with the proper extras: https://docs.haystack.deepset.ai/docs/installation#custom-installation"
|
||||
)
|
||||
|
||||
subclass = cls._subclasses[component_type]
|
||||
return subclass
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user