check neq zero exit code

This commit is contained in:
Jeromy
2020-05-28 22:11:49 +02:00
committed by Łukasz Magiera
parent 514339e855
commit 8e55c91cd2
+3 -2
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)
}