Skip to content

Commit

Permalink
Merge pull request #318 from hyperledger/fix-error-reporting
Browse files Browse the repository at this point in the history
Cleanup code masking useful error message
  • Loading branch information
EnriqueL8 authored Jul 24, 2024
2 parents 2f9ffd7 + b8f9bc0 commit 56ebc8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 56ebc8f

Please sign in to comment.