Skip to content
This repository was archived by the owner on Sep 25, 2024. It is now read-only.

Commit dda5e43

Browse files
committed
Improve dist-git-branch-does-not-exist message
#62 (comment)
1 parent 044911d commit dda5e43

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

hardly/handlers/distgit.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,11 @@ def run(self) -> TaskResults:
128128
self.target_repo_branch
129129
not in self.packit.dg.local_project.git_project.get_branches()
130130
):
131-
msg = f"Downstream {self.target_repo}:{self.target_repo_branch} branch does not exist."
131+
msg = (
132+
"Can't create a dist-git pull/merge request out of this contribution "
133+
f"because matching {self.target_repo_branch} branch does not exist "
134+
f"in dist-git {self.target_repo} repo."
135+
)
132136
self.project.get_pr(int(self.mr_identifier)).comment(msg)
133137
logger.info(msg)
134138
return TaskResults(success=True)

0 commit comments

Comments
 (0)