Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[roslaunch] Better exception handling when resource is not found.
When `$(find pkg)` fail to return a resource in `arg` tag, `roslaunch` fails without printing useful output. With this PR it provides better explanation. Without this PR: ``` $ roslaunch /tmp/invalid_arg.launch : Invalid <arg> tag: foo ROS path [0]=/opt/ros/kinetic/share/ros ROS path [1]=/home/n130s/ROS/indigo_trusty/cws_rosdt/src/ros/ros_comm/tools/roslaunch ROS path [2]=/opt/ros/kinetic/share Arg xml is <arg default="$(find foo)/.config" name="foo"/> The traceback for the exception was written to the log file ``` With this PR: ``` $ roslaunch /tmp/invalid_arg.launch : Invalid <arg> tag: Make sure the following is found in ROS_PACKAGE_PATH: foo ROS path [0]=/opt/ros/kinetic/share/ros ROS path [1]=/home/n130s/ROS/indigo_trusty/cws_rosdt/src/ros/ros_comm/tools/roslaunch ROS path [2]=/opt/ros/kinetic/share Arg xml is <arg default="$(find foo)/.config" name="foo"/> The traceback for the exception was written to the log file ``` ``` $ more /tmp/invalid_arg.launch <?xml version="1.0"?> <launch> <arg name="foo" default="$(find foo)/.config" /> <arg name="baa" default="$(arg foo)/hoge.yaml" /> </launch> ```
- Loading branch information