Merge pull request #1860 from filecoin-project/fix/recovery-exit-code-check

check neq zero exit code
This commit is contained in:
Whyrusleeping 2020-05-28 12:59:29 -07:00 committed by GitHub
commit d0eb4278ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)
}