-
Notifications
You must be signed in to change notification settings - Fork 479
Clearer warning message, the old one lacked information and was perhaps misleading #2924
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
Merged
jmachowinski
merged 1 commit into
ros2:humble
from
peter-mitrano-ar:humble-callback-error-improve-warning
Aug 19, 2025
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@peter-mitrano-ar
thanks for bringing up this question with PR.
i believe this error message is meant to be the error during error handling callback, which is not related to the original transition. so i think original message
Error occurred while doing error handling.is appropriate to print here.btw i thinks error handling is missing some functionalities such as ros2/rcl_interfaces#97
Uh oh!
There was an error while loading. Please reload this page.
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.
@fujitatomoya
This would be the
on_errorcallback, right? It looks to me like that happens later and has not happened yet. This warning is printed regardless of whetheron_erroris successful or not.So if a user callback returns ERROR, but
on_errorhas not been called yet, does this message really make sense? I don't think so.I tested this just to confirm on_error is called after this warning is printed:
Here is my on-error for testing, as you can see it returns
SUCCESS.But perhaps I still not understanding the code? Thank you for you prompt reply and for pointing out that error handling is still missing some things!
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.
Ah, sorry you are right. i was the confused here.... thanks for pointing that out!
on_error is not yet called here, transition callback returned error. that said, i agree with you that the error message here is not appropriate. and the later, it will call the on_error callback to see if it can clean up the error state for this transition.