bubble up errors properly from ApplyImplicitMessage
This commit is contained in:
parent
4463abd009
commit
884b9004db
@ -133,7 +133,9 @@ func (sm *StateManager) Call(ctx context.Context, msg *types.Message, ts *types.
|
|||||||
|
|
||||||
// TODO: maybe just use the invoker directly?
|
// TODO: maybe just use the invoker directly?
|
||||||
ret, err := vmi.ApplyImplicitMessage(ctx, msg)
|
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
|
var errs string
|
||||||
if ret.ActorErr != nil {
|
if ret.ActorErr != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user