Skip to content

Commit

Permalink
better error message
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Abro <[email protected]>
  • Loading branch information
AustinAbro321 committed Aug 2, 2024
1 parent 0dfb45e commit 31d6fbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pkg/cluster/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (c *Cluster) InitZarfState(ctx context.Context, initOptions types.ZarfInitO
spinner.Updatef("Checking cluster for existing Zarf deployment")
state, err := c.LoadZarfState(ctx)
if err != nil && !kerrors.IsNotFound(err) {
return fmt.Errorf("failed to init Zarf state: %w", err)
return fmt.Errorf("failed to check for existing state: %w", err)
}

// If state is nil, this is a new cluster.
Expand Down

0 comments on commit 31d6fbd

Please sign in to comment.