Skip to content

Improve readability when printing type of classes in error messages#469

Merged
ahcorde merged 1 commit into
ros2:rollingfrom
ijnek:hotfix/print-type-readability
Jun 17, 2025
Merged

Improve readability when printing type of classes in error messages#469
ahcorde merged 1 commit into
ros2:rollingfrom
ijnek:hotfix/print-type-readability

Conversation

@ijnek

@ijnek ijnek commented Jun 16, 2025

Copy link
Copy Markdown
Contributor

Description

Similar to ros2/launch#887, in a few places, error messages printed types in a verbose format like '<class 'str'>'. This PR simplifies that by displaying just the type name (e.g. 'str').

Did you use Generative AI?

No

Signed-off-by: ijnek <kenjibrameld@gmail.com>
@fujitatomoya

Copy link
Copy Markdown

Pulls: #469
Gist: https://gist.githubusercontent.com/fujitatomoya/6564ef763d0068b51cde90001f8b306d/raw/88f51ff5c287b24e354991048bd5ac5af3e2e72f/ros2.repos
BUILD args: --packages-above-and-dependencies launch_ros
TEST args: --packages-above launch_ros
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/16218

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@ahcorde ahcorde merged commit 9c5f6a7 into ros2:rolling Jun 17, 2025
3 checks passed
@ahcorde

ahcorde commented Jun 17, 2025

Copy link
Copy Markdown
Contributor

https://github.com/Mergifyio backport kilted jazzy humble

@mergify

mergify Bot commented Jun 17, 2025

Copy link
Copy Markdown

backport kilted jazzy humble

✅ Backports have been created

Details

mergify Bot pushed a commit that referenced this pull request Jun 17, 2025
Signed-off-by: ijnek <kenjibrameld@gmail.com>
(cherry picked from commit 9c5f6a7)
mergify Bot pushed a commit that referenced this pull request Jun 17, 2025
Signed-off-by: ijnek <kenjibrameld@gmail.com>
(cherry picked from commit 9c5f6a7)
mergify Bot pushed a commit that referenced this pull request Jun 17, 2025
Signed-off-by: ijnek <kenjibrameld@gmail.com>
(cherry picked from commit 9c5f6a7)

# Conflicts:
#	launch_ros/launch_ros/utilities/evaluate_parameters.py
ahcorde pushed a commit that referenced this pull request Jun 19, 2025
(cherry picked from commit 9c5f6a7)

Signed-off-by: ijnek <kenjibrameld@gmail.com>
Co-authored-by: Kenji Brameld <kenjibrameld@gmail.com>
ahcorde pushed a commit that referenced this pull request Jun 20, 2025
(cherry picked from commit 9c5f6a7)

Signed-off-by: ijnek <kenjibrameld@gmail.com>
Co-authored-by: Kenji Brameld <kenjibrameld@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants