Skip to content

Commit

Permalink
Revert "fix: improve error reporting" (#499)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle authored Feb 8, 2024
1 parent e4dee94 commit 1beda10
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions oci/private/image.sh.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ function base_from_layout() {

"${CRANE}" push "${oci_layout_path}" "${registry}/image:latest" --image-refs "${refs}" > "${output}" 2>&1


if [[ $? != 0 ]]; then
if grep -q "MANIFEST_INVALID" "${output}"; then
if grep -q "MANIFEST_INVALID" "${output}"; then
cat >&2 << EOF
zot registry does not support docker manifests.
Expand All @@ -74,11 +72,10 @@ crane registry does support both oci and docker images, but is more memory hungr
If you want to use the crane registry, remove "zot_version" from "oci_register_toolchains".
EOF
else
cat "${output}"
fi
exit 1

exit 1
fi

cat "${refs}"
}

Expand Down

0 comments on commit 1beda10

Please sign in to comment.