From e72df262a8bcd5da1845ad6051bccff6e6338721 Mon Sep 17 00:00:00 2001 From: Filip Strozik Date: Tue, 12 Nov 2024 13:39:58 +0100 Subject: [PATCH] Guide user on how to extract extension error (#2244) --- internal/cmdcommon/extension.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/cmdcommon/extension.go b/internal/cmdcommon/extension.go index a265a0fb7..755603e35 100644 --- a/internal/cmdcommon/extension.go +++ b/internal/cmdcommon/extension.go @@ -25,6 +25,8 @@ func newExtensionsConfig(config *KymaConfig, cmd *cobra.Command) *KymaExtensions if err != nil && shouldShowExtensionsError() { // print error as warning if expected and continue fmt.Printf("Extensions Warning:\n%s\n\n", err.Error()) + } else if err != nil { + fmt.Print("Extensions Warning:\nfailed to fetch all extensions from the cluster. Use the '--show-extensions-error' flag to see more details.\n\n") } extensionsConfig := &KymaExtensionsConfig{