-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Fix/informative error message #9661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Fix/informative error message #9661
Conversation
Pull Request Test Coverage Report for Build 16902023987Details
💛 - Coveralls |
Hey @sjrl , On the first recommended error message when
do you think this would be a more clear error message:
ReasonI was debugging the test : With the current error message this is what it looks like
and I thought this would add more clarity
Would love to hear your thoughts on this |
Great catch! Yes that would be a much better error message to provide. So let's go with your suggestion for this third case. |
I do apologize for disabling
|
if not sender_sockets: | ||
raise PipelineConnectError( | ||
f"'{sender_component_name}' does not have any output connections. " | ||
f"Please check that the output types of '{sender_component_name}.run' are set, " | ||
f"for example by using the '@component.output_types' decorator." | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably want a similar check and error message if receiver_sockets
don't exist either right?
Related Issues
Proposed Changes:
Made the error more descriptive using the formatted recommended by @sjrl .
How did you test it?
Notes for the reviewer
Checklist
fix:
,feat:
,build:
,chore:
,ci:
,docs:
,style:
,refactor:
,perf:
,test:
and added!
in case the PR includes breaking changes.