Merge pull request #3062 from crazy-max/builder-error-boot

builder: return error if a node fails to boot
This commit is contained in:
CrazyMax 2025-03-13 18:02:13 +01:00 committed by GitHub
commit 00fdcd38ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -200,7 +200,7 @@ func (b *Builder) Boot(ctx context.Context) (bool, error) {
err = err1 err = err1
} }
if err == nil && len(errCh) == len(toBoot) { if err == nil && len(errCh) > 0 {
return false, <-errCh return false, <-errCh
} }
return true, err return true, err