From eefec83c784213bee82f1172299c3762c270f394 Mon Sep 17 00:00:00 2001 From: h-suzuki Date: Fri, 8 Mar 2024 17:58:31 +0900 Subject: [PATCH] Update: error message Signed-off-by: h-suzuki --- ros2caret/verb/version.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ros2caret/verb/version.py b/ros2caret/verb/version.py index f65e5d2..026a855 100644 --- a/ros2caret/verb/version.py +++ b/ros2caret/verb/version.py @@ -38,4 +38,5 @@ def get_version(self): raise RuntimeError('Error: Package version not found in package.xml') return version_element.text except(PackageNotFoundError, FileNotFoundError): - raise RuntimeError('Error: package or file share/ros2caret/package.xml not found') + xml_path = os.path.join(get_package_share_directory('ros2caret'), 'package.xml') + raise RuntimeError(f'Error: not found {xml_path}')