Skip to content

Commit

Permalink
Clarifies possible loader classes to improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
elijahbenizzy committed Oct 31, 2023
1 parent 02bb7c9 commit a2d71c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hamilton/function_modifiers/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def get_loader_nodes(
)
if loader_cls is None:
raise InvalidDecoratorException(
f"Could not resolve adapter for type: {load_type} given key"
f"Could not resolve loader for type: {load_type} given possibilities: {self.loader_classes} "
)
loader_factory = AdapterFactory(loader_cls, **self.kwargs)
# dependencies is a map from param name -> source name
Expand Down

0 comments on commit a2d71c5

Please sign in to comment.