Skip to content

Commit

Permalink
Use SysErrReserved1 in the event of an actors panic
Browse files Browse the repository at this point in the history
  • Loading branch information
arajasek committed Oct 6, 2020
1 parent 14ad91c commit 7b55625
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion chain/vm/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ func (rt *Runtime) shimCall(f func() interface{}) (rval []byte, aerr aerrors.Act
//log.Desugar().WithOptions(zap.AddStacktrace(zapcore.ErrorLevel)).
//Sugar().Errorf("spec actors failure: %s", r)
log.Errorf("spec actors failure: %s", r)
aerr = aerrors.Newf(1, "spec actors failure: %s", r)
if rt.NetworkVersion() <= network.Version3 {
aerr = aerrors.Newf(1, "spec actors failure: %s", r)
} else {
aerr = aerrors.Newf(exitcode.SysErrReserved1, "spec actors failure: %s", r)
}
}
}()

Expand Down

0 comments on commit 7b55625

Please sign in to comment.