Merge pull request #9582 from filecoin-project/gstuart/call-fix

fix: stmgr: bubble up errors properly from ApplyImplicitMessage
This commit is contained in:
Aayush Rajasekaran 2022-11-01 10:35:08 +00:00 committed by GitHub
commit 98c2d25aee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,7 +133,9 @@ func (sm *StateManager) Call(ctx context.Context, msg *types.Message, ts *types.
// TODO: maybe just use the invoker directly?
ret, err := vmi.ApplyImplicitMessage(ctx, msg)
// Don't check for error here, we want to bubble it up, but also return ret as an InvocResult
if err != nil && ret == nil {
return nil, xerrors.Errorf("apply message failed: %w", err)
}
var errs string
if ret.ActorErr != nil {