-
Notifications
You must be signed in to change notification settings - Fork 39
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
Refactor child pad removed default error message #581
Conversation
lib/membrane/core/parent.ex
Outdated
callback_ref = "`c:Membrane.#{component_type_string}.handle_child_pad_removed/4`" | ||
|
||
""" | ||
Child #{inspect(child)} removed its pad #{inspect(pad)}, but callback #{callback_ref} is not implemented in #{inspect(component_module)}. |
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.
Child #{inspect(child)} removed its pad #{inspect(pad)}, but callback #{callback_ref} is not implemented in #{inspect(component_module)}. | |
Bin #{inspect(child)} removed its pad #{inspect(pad)}, but callback #{callback_ref} is not implemented in #{inspect(component_module)}. |
lib/membrane/core/parent.ex
Outdated
""" | ||
Child #{inspect(child)} removed its pad #{inspect(pad)}, but callback #{callback_ref} is not implemented in #{inspect(component_module)}. | ||
|
||
This means, that `#{inspect(child)} is a bin, that removed its pad #{inspect(pad)} on its own, without knowledge of its parent. It |
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.
This means, that `#{inspect(child)} is a bin, that removed its pad #{inspect(pad)} on its own, without knowledge of its parent. It | |
This means, that `#{inspect(child)} removed the pad on its own, without knowledge of its parent. It |
lib/membrane/core/parent.ex
Outdated
could be done, by, for example, removing #{inspect(child)}'s child linked to the #{inspect(child)}'s inner pad or by removing link | ||
between #{inspect(child)} and its child. | ||
|
||
If you want to handle e scenario when a child removes its pad in #{inspect(component_module)}, implement #{callback_ref} callback. |
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.
If you want to handle e scenario when a child removes its pad in #{inspect(component_module)}, implement #{callback_ref} callback. | |
If you want to handle this scenario, implement #{callback_ref} callback in #{inspect(component_module)}. |
lib/membrane/core/parent.ex
Outdated
could be done, by, for example, removing #{inspect(child)}'s child linked to the #{inspect(child)}'s inner pad or by removing link | ||
between #{inspect(child)} and its child. |
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.
could be done, by, for example, removing #{inspect(child)}'s child linked to the #{inspect(child)}'s inner pad or by removing link | |
between #{inspect(child)} and its child. | |
may have happened because, for example, #{inspect(child)} removed its child linked to its inner pad or unlinked its child from its inner pad. |
9cd94d2
to
7f6ac6d
Compare
…removed-error-message
Co-authored-by: Łukasz Kita <lukasz.kita0@gmail.com>
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.
Just consider my last suggestion ;)
msg = """ | ||
Bin #{inspect(child)} removed its pad #{inspect(pad)}, but callback #{callback_ref} is not implemented in #{inspect(module)}. | ||
|
||
This means, that `#{inspect(child)} removed the pad on its own, without knowledge of its parent. For example it could happen due to removing #{inspect(child)}'s child linked to the #{inspect(child)}'s inner pad or by removing link between #{inspect(child)} and its child. |
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.
shouldn't we split it into two lines?
…removed-error-message
Related Jira ticket: https://membraneframework.atlassian.net/browse/MC-214