From 5b3c2b91f1cebdaff070b3495288371e27bf341c Mon Sep 17 00:00:00 2001 From: Mujib Ahasan Date: Mon, 13 Apr 2026 20:19:05 +0530 Subject: [PATCH] error handling improved Signed-off-by: Mujib Ahasan --- cmd/patch/patch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/patch/patch.go b/cmd/patch/patch.go index a1d58c12..928b2d13 100644 --- a/cmd/patch/patch.go +++ b/cmd/patch/patch.go @@ -95,7 +95,7 @@ func validateImagePatchInfo(patchInfo *metav1.PatchInfo) error { // Convert image to canonical format (required by copacetic for patching images) patchInfoImage, err := cautils.NormalizeImageName(patchInfo.Image) if err != nil { - return nil + return err } // Parse the image full name to get image name and tag