From 28033ff20182914f66309f96e6ad925155f21db9 Mon Sep 17 00:00:00 2001 From: Michal Haluza <70633271+MichalHaluza@users.noreply.github.com> Date: Thu, 23 May 2024 08:47:27 +0200 Subject: [PATCH] Update log message to show the reference with bad manifest type (#260) --- pubtools/_quay/tag_docker.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pubtools/_quay/tag_docker.py b/pubtools/_quay/tag_docker.py index b518952a..5f49cdad 100644 --- a/pubtools/_quay/tag_docker.py +++ b/pubtools/_quay/tag_docker.py @@ -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: