From e90269d34779fdfb1462fde346fb3780959e03d8 Mon Sep 17 00:00:00 2001 From: "Isaac I.Y. Saito" <130s@2000.jukuin.keio.ac.jp> Date: Wed, 15 Feb 2017 19:11:33 -0800 Subject: [PATCH] [roslaunch] Indicating tag when it is actually a tag is confusing. For example, [this warning msg](https://travis-ci.org/wg-perception/people/jobs/202019288#L3737) (in this [PR](https://github.com/wg-perception/people/pull/49)): ``` * WARN: unrecognized 'group' tag in tag. Node xml is ``` This is confusing because the tag in question is actually ``, not ``. Although the warning message refers to the exact tag, I didn't try to read it because I was told the issue is with , not . With this PR the message becomes a bit verbose but hope the readers get better idea. --- tools/roslaunch/src/roslaunch/xmlloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/roslaunch/src/roslaunch/xmlloader.py b/tools/roslaunch/src/roslaunch/xmlloader.py index ff07ff4463..6bb752b6fc 100644 --- a/tools/roslaunch/src/roslaunch/xmlloader.py +++ b/tools/roslaunch/src/roslaunch/xmlloader.py @@ -409,7 +409,7 @@ def _node_tag(self, tag, context, ros_config, default_machine, is_test=False, ve elif tag_name == 'env': self._env_tag(t, env_context, ros_config) else: - ros_config.add_config_error("WARN: unrecognized '%s' tag in tag. Node xml is %s"%(t.tagName, tag.toxml())) + ros_config.add_config_error("WARN: unrecognized '%s' child tag in the parent tag element: %s"%(t.tagName, tag.toxml())) # #1036 evaluate all ~params in context # TODO: can we get rid of force_local (above), remove this for loop, and just rely on param_tag logic instead?