Skip to content

Commit

Permalink
Update log message to show the reference with bad manifest type (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalHaluza authored May 23, 2024
1 parent 2cd8e69 commit 28033ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pubtools/_quay/tag_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ def get_image_details(self, reference: str, executor: Executor) -> Optional[Imag

manifest_type = manifest["mediaType"]
if manifest_type not in [TagDocker.MANIFEST_V2S2_TYPE, TagDocker.MANIFEST_LIST_TYPE]:
raise BadPushItem("Image {0} has manifest type different than V2S2 or manifest list")
raise BadPushItem(
"Image {0} has manifest type different than V2S2 or manifest list".format(reference)
)

# Check arch if the image is V2S2 manifest
if manifest["mediaType"] == TagDocker.MANIFEST_V2S2_TYPE:
Expand Down

0 comments on commit 28033ff

Please sign in to comment.