Skip to content

Commit

Permalink
Merge pull request #350 from camptocamp/fix-patch
Browse files Browse the repository at this point in the history
Patch: Better error
  • Loading branch information
sbrunner authored Jun 10, 2024
2 parents e738ba6 + e3d5254 commit 721f725
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion github_app_geo_project/module/standard/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,12 @@ async def process(
if not is_clone:
success = utils.git_clone(context.github_project, workflow_run.head_branch)
if not success:
raise PatchException("Failed to clone the repository, see logs for details")
return module.ProcessOutput(
success=False,
output={
"summary": "Failed to clone the repository, see details on the application for details (link below)"
},
)

for artifact in workflow_run.get_artifacts():
if not artifact.name.endswith(".patch"):
Expand Down

0 comments on commit 721f725

Please sign in to comment.