Skip to content

Commit

Permalink
Update: error message
Browse files Browse the repository at this point in the history
Signed-off-by: h-suzuki <[email protected]>
  • Loading branch information
h-suzuki-isp committed Mar 8, 2024
1 parent a972e73 commit eefec83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ros2caret/verb/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}')

0 comments on commit eefec83

Please sign in to comment.