From b8f9bc002491e860c90830001c57b5311aa5d2ea Mon Sep 17 00:00:00 2001 From: Peter Broadhurst Date: Tue, 23 Jul 2024 22:47:43 -0400 Subject: [PATCH] Cleanup code masking useful error message Signed-off-by: Peter Broadhurst --- cmd/init.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/init.go b/cmd/init.go index 6d00a36..212f355 100644 --- a/cmd/init.go +++ b/cmd/init.go @@ -55,8 +55,8 @@ var initCmd = &cobra.Command{ return err } if err := stackManager.InitStack(&initOptions); err != nil { - if err := stackManager.RemoveStack(); err != nil { - return err + if cleanupErr := stackManager.RemoveStack(); cleanupErr != nil { + fmt.Printf("Cleanup from previous error returned: %s", cleanupErr) } return err }