From 11d1caf1d80a0e7ab4edc9a0d61beb5687ba60a9 Mon Sep 17 00:00:00 2001 From: wangyelei Date: Wed, 25 Dec 2024 09:52:06 +0800 Subject: [PATCH] chore: update no matched cmpd and serviceVersion msg (#8701) --- controllers/apps/componentversion_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/apps/componentversion_controller.go b/controllers/apps/componentversion_controller.go index f156930a4cc..ffd0e4f4fe2 100644 --- a/controllers/apps/componentversion_controller.go +++ b/controllers/apps/componentversion_controller.go @@ -421,7 +421,7 @@ func resolveCompDefinitionNServiceVersion(ctx context.Context, cli client.Reader // component definitions that support the service version compatibleCompDefs := serviceVersionToCompDefs[serviceVersion] if len(compatibleCompDefs) == 0 { - return compDef, serviceVersion, fmt.Errorf("no matched component definition found: %s", compDefName) + return compDef, serviceVersion, fmt.Errorf(`no matched component definition found with componentDef "%s" and serviceVersion "%s"`, compDefName, serviceVersion) } // choose the latest one