From 1a9a079a140c5385c870560ed1fb1d852dabbec2 Mon Sep 17 00:00:00 2001 From: Himanshu Singla Date: Sun, 19 Jul 2026 21:21:03 +0530 Subject: [PATCH] Add error_message to connect artifact describe/list output Surfaces the new error_message field from CamV1ConnectArtifactStatus so users see why artifact inspection failed instead of just status: FAILED. Draft: depends on a ccloud-sdk-go-v2/cam bump that isn't released yet (error_message is only in the public spec as of confluentinc/api#2615, not yet merged), so this doesn't build until that lands. Opening early for review of the CLI-side change itself. --- internal/connect/command_artifact.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/connect/command_artifact.go b/internal/connect/command_artifact.go index d1ed85d128..e6bd7c0275 100644 --- a/internal/connect/command_artifact.go +++ b/internal/connect/command_artifact.go @@ -21,6 +21,7 @@ type artifactOut struct { Environment string `human:"Environment" serialized:"environment"` ContentFormat string `human:"Content Format" serialized:"content_format"` Status string `human:"Status" serialized:"status"` + ErrorMessage string `human:"Error Message" serialized:"error_message"` } func newArtifactCommand(prerunner pcmd.PreRunner) *cobra.Command { @@ -49,6 +50,7 @@ func convertToArtifactOut(artifact camv1.CamV1ConnectArtifact) *artifactOut { Environment: artifact.Spec.GetEnvironment(), ContentFormat: artifact.Spec.GetContentFormat(), Status: artifact.Status.GetPhase(), + ErrorMessage: artifact.Status.GetErrorMessage(), } }