mirror of
https://git.centos.org/centos/centpkg.git
synced 2025-02-23 08:12:55 +00:00
Better error message when phase determining fails
Signed-off-by: Troy Dawson <tdawson@redhat.com>
This commit is contained in:
parent
46473e9c83
commit
37fb23b990
1 changed files with 8 additions and 1 deletions
|
@ -193,7 +193,14 @@ class centpkgClient(cliClient):
|
|||
self.log.info("Checking rhel-target information:")
|
||||
stream_version = self.cmd.target.split('-')[0]
|
||||
rhel_version = centpkg.utils.stream_mapping(stream_version)
|
||||
active_y, in_stabilization = centpkg.utils.determine_active_y_version(rhel_version, pp_api_url)
|
||||
try:
|
||||
active_y, in_stabilization = centpkg.utils.determine_active_y_version(rhel_version, pp_api_url)
|
||||
except AssertionError as e:
|
||||
self.log.info(" Error: centpkg cannot determine the development phase.")
|
||||
self.log.info(" Please file an issue at https://git.centos.org/centos/centpkg")
|
||||
self.log.info(" Workaround: Use the --rhel-target option")
|
||||
self.log.info("Exiting")
|
||||
raise SystemExit
|
||||
divergent_branch = centpkg.utils.does_divergent_branch_exist(
|
||||
self.cmd.repo_name,
|
||||
rhel_version,
|
||||
|
|
Loading…
Add table
Reference in a new issue