builder: return error if a node fails to boot

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2025-03-12 16:05:16 +01:00
parent 0d708c0bc2
commit 503a8925d2

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