Clarify error about non-existing module

JIRA: COMPOSE-2825
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2018-08-24 13:03:18 +02:00
parent a5fa4457c3
commit 6f527ae5b9

View File

@ -128,7 +128,10 @@ def get_koji_modules(compose, koji_wrapper, module_info_str):
koji_builds = koji_proxy.search(query_str, "build", "glob") koji_builds = koji_proxy.search(query_str, "build", "glob")
# Error reporting # Error reporting
if not koji_builds: if not koji_builds:
raise ValueError("Failed to find modules in koji %s" % query_str) raise ValueError(
"No module build found for %r (queried for %r)"
% (module_info_str, query_str)
)
modules = [] modules = []
for build in koji_builds: for build in koji_builds: