Help text for errors

This commit is contained in:
Joe Knapper 2026-06-10 14:40:10 +01:00 committed by Joe Knapper
parent 98b7f23148
commit d3958a90e0

View file

@ -59,7 +59,11 @@ def main(branch: str = "v3", project: Optional[str] = None) -> None:
zip_data = ofm_repo.artifacts.download(branch, "build") zip_data = ofm_repo.artifacts.download(branch, "build")
except GitlabGetError as e: except GitlabGetError as e:
print(f"Failed to get artifacts from GitLab.\n{e}") print(
"Failed to get artifacts from GitLab.\n"
"If pointing to a branch, ensure the artifacts haven't expired,\n"
f"and rerun the pipeline from Gitlab if necessary.\n{e}"
)
sys.exit(-1) sys.exit(-1)
if zip_data is None: if zip_data is None: