-
Notifications
You must be signed in to change notification settings - Fork 142
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
Add exception type to error output #753
Add exception type to error output #753
Conversation
Knowing the type of exception that occurred provides more context and makes launch exceptions easier to track down. Signed-off-by: David Yackzan <dwyackzan@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.
This looks like a nice change. Do you have a test for this?
@tylerjw I just tested locally, but I'll work on getting a test added to this PR |
2cb43ca
to
6deaf37
Compare
Signed-off-by: David Yackzan <dwyackzan@gmail.com>
6deaf37
to
9b67835
Compare
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.
Thank you for adding the test. Will it be ok to backport this to Humble and Iron?
Co-authored-by: Tyler Weaver <maybe@tylerjw.dev> Signed-off-by: David Yackzan <dwyackzan@gmail.com>
@tylerjw I don't think a backport will work here...It looks like the functionality to report multiple exceptions was added into rolling and not backported to humble and iron (from this PR). So this change won't be 1-to-1 and the test I added for the multiple exception case wouldn't pass. |
Generally, we get the fixes into |
@clalancette in the last section of the logs it looks like the
but I don't think this would be caused by this PR since I didn't commit any xml changes. Let me know what you think |
Yeah, that was just an infrastructure problem. I've kicked off the job again. |
Backport of ros2#753: * Output exception type for InvalidLaunchFileErrors * Add test checking for exception type in output Signed-off-by: David Yackzan <dwyackzan@gmail.com>
* Improve launch file parsing error messages Backport of #626: * Parser errors clearly show that values are substituted and not part of the error message itself. * On an InvalidLaunchFileError, all parsing errors are logged. * Add exception type to error output Backport of #753: * Output exception type for InvalidLaunchFileErrors * Add test checking for exception type in output Signed-off-by: David Yackzan <dwyackzan@gmail.com>
Knowing the type of exception that occurred provides more context and makes launch exceptions easier to track down.