Skip to content
This repository was archived by the owner on Jan 14, 2023. It is now read-only.

Commit 92fcdcd

Browse files
committed
Merge pull request #2 from peci1/more-descriptive-error
Added a more descriptive and helpful error message
2 parents 2301d2e + 3df4b09 commit 92fcdcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/genjava/gradle_project.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def create(msg_pkg_name, output_dir):
149149
os.makedirs(genjava_gradle_dir)
150150
msg_package_index = create_msg_package_index()
151151
if msg_pkg_name not in msg_package_index.keys():
152-
raise IOError("could not find %s on the ros package path" % msg_pkg_name)
152+
raise IOError("could not find %s among message packages. Does the that package have a <build_depend> on message_generation in its package.xml?" % msg_pkg_name)
153153

154154
msg_dependencies = create_dependency_string(msg_pkg_name, msg_package_index)
155155

0 commit comments

Comments
 (0)