Skip to content

Commit

Permalink
fix error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Feb 5, 2024
1 parent 006cba2 commit 0cbfe2a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions node/impl/full/eth.go
Original file line number Diff line number Diff line change
Expand Up @@ -879,12 +879,12 @@ func (a *EthModule) EthTraceBlock(ctx context.Context, blkNum string) ([]*ethtyp

env, err := baseEnvironment(st, ir.Msg.From)
if err != nil {
return nil, xerrors.Errorf("when processing message %s: %w", err)
return nil, xerrors.Errorf("when processing message %s: %w", ir.MsgCid, err)
}

err = buildTraces(env, nil, &ir.ExecutionTrace)
if err != nil {
return nil, xerrors.Errorf("failed building traces: %w", err)
return nil, xerrors.Errorf("failed building traces for msg %s: %w", ir.MsgCid, err)
}

for _, trace := range env.traces {
Expand Down Expand Up @@ -938,12 +938,12 @@ func (a *EthModule) EthTraceReplayBlockTransactions(ctx context.Context, blkNum

env, err := baseEnvironment(st, ir.Msg.From)
if err != nil {
return nil, xerrors.Errorf("when processing message %s: %w", err)
return nil, xerrors.Errorf("when processing message %s: %w", ir.MsgCid, err)
}

err = buildTraces(env, nil, &ir.ExecutionTrace)
if err != nil {
return nil, xerrors.Errorf("failed building traces: %w", err)
return nil, xerrors.Errorf("failed building traces for msg %s: %w", err)
}

var output []byte
Expand Down

0 comments on commit 0cbfe2a

Please sign in to comment.