Merge pull request #1648 from filecoin-project/asr/fatal
Elevate an actor construction fail-case to fatal
This commit is contained in:
commit
a1bb005b7c
@ -50,8 +50,7 @@ func TryCreateAccountActor(rt *Runtime, addr address.Address) (*types.Actor, aer
|
||||
|
||||
p, err := actors.SerializeParams(&addr)
|
||||
if err != nil {
|
||||
// TODO: Unsure whether this should be fatal
|
||||
return nil, aerrors.Absorb(err, exitcode.SysErrInvalidParameters, "registering actor address")
|
||||
return nil, aerrors.Escalate(err, "couldn't serialize params for actor construction")
|
||||
}
|
||||
// call constructor on account
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user