From 0cbfe2acf5bfb9be6fcdc6aecff76aad7c641d36 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Mon, 5 Feb 2024 12:38:31 -0800 Subject: [PATCH] fix error messages --- node/impl/full/eth.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/node/impl/full/eth.go b/node/impl/full/eth.go index 5d5633365eb..6e99243e25b 100644 --- a/node/impl/full/eth.go +++ b/node/impl/full/eth.go @@ -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 { @@ -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