From 25834f5ba062b2f1ebc8f8a55036e08bf2f59e27 Mon Sep 17 00:00:00 2001 From: Xuwznln <18435084+Xuwznln@users.noreply.github.com> Date: Thu, 16 Oct 2025 13:05:44 +0800 Subject: [PATCH] provide error info when cant find plr type --- unilabos/ros/nodes/resource_tracker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unilabos/ros/nodes/resource_tracker.py b/unilabos/ros/nodes/resource_tracker.py index 0f1ba55e..e1b98486 100644 --- a/unilabos/ros/nodes/resource_tracker.py +++ b/unilabos/ros/nodes/resource_tracker.py @@ -439,7 +439,7 @@ class ResourceTreeSet(object): try: sub_cls = find_subclass(plr_dict["type"], PLRResource) if sub_cls is None: - raise ValueError(f"无法找到类型 {plr_dict['type']} 对应的 PLR 资源类") + raise ValueError(f"无法找到类型 {plr_dict['type']} 对应的 PLR 资源类。原始信息:{tree.root_node.res_content}") spec = inspect.signature(sub_cls) if "category" not in spec.parameters: plr_dict.pop("category", None)