check neq zero exit code

This commit is contained in:
Jeromy 2020-05-28 08:45:34 -07:00
parent 70e690dac0
commit b807bdbea0

View File

@ -4,9 +4,10 @@ import (
"bytes"
"context"
"errors"
"github.com/filecoin-project/go-bitfield"
"time"
"github.com/filecoin-project/go-bitfield"
"github.com/filecoin-project/go-address"
"github.com/filecoin-project/specs-actors/actors/abi"
"github.com/filecoin-project/specs-actors/actors/builtin"
@ -171,7 +172,7 @@ func (s *WindowPoStScheduler) checkRecoveries(ctx context.Context, deadline uint
return xerrors.Errorf("declare faults recovered wait error: %w", err)
}
if rec.Receipt.ExitCode == 0 {
if rec.Receipt.ExitCode != 0 {
return xerrors.Errorf("declare faults recovered wait non-0 exit code: %d", rec.Receipt.ExitCode)
}