From 55fef745bce5ae947c1169769f480278364a0373 Mon Sep 17 00:00:00 2001 From: Bartok9 Date: Tue, 14 Jul 2026 02:47:20 -0400 Subject: [PATCH] fix(description): show all accepted arm_type values in error When an invalid arm_type is given, list every accepted value derived from VALID_ARM_TYPES instead of hardcoding two names, so the error stays correct as new arm types are added. --- launch/display_openarm.launch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launch/display_openarm.launch.py b/launch/display_openarm.launch.py index d3bf205..c763ade 100644 --- a/launch/display_openarm.launch.py +++ b/launch/display_openarm.launch.py @@ -36,7 +36,7 @@ def resolve_arm_config(arm_type_str: str) -> tuple[str, str]: if arm_type_str not in VALID_ARM_TYPES: raise ValueError( f"Invalid arm_type: '{arm_type_str}'. " - f"Please specify openarm_v1.0 or openarm_v2.0." + f"Accepted values: {sorted(VALID_ARM_TYPES)}." ) if any(x in arm_type_str for x in ("1.0", "10", "1_0")): return "openarm_v1.0", "openarm_v10.urdf.xacro"