Skip to content

Commit

Permalink
fix: return error when liqoctl network fails
Browse files Browse the repository at this point in the history
  • Loading branch information
cheina97 committed Dec 12, 2024
1 parent a5f2198 commit 9ee35be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/liqoctl/test/network/check/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ func RunChecks(ctx context.Context, cl *client.Client, cfg client.Configs, opts
logger.Info("All checks completed")
PrintCheckResults(successCountTot, errorCountTot, logger)

if errorCountTot > 0 {
return fmt.Errorf("some checks failed")
}
return nil
}

Expand Down

0 comments on commit 9ee35be

Please # to comment.