Skip to content

Commit

Permalink
fix: Add label to panic error message error.
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-smith committed Jun 17, 2024
1 parent 3821fde commit ec92838
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eth/filters/trace_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (api *FilterAPI) NewPendingTransactionsWithTrace(ctx context.Context, trace
// first.
defer func() {
if r := recover(); r != nil {
log.Error("pending_txs_stream panic:", r)
log.Error("pending_txs_stream panic:", "err", r)
}
}()

Expand Down Expand Up @@ -197,7 +197,7 @@ func (api *FilterAPI) NewFullBlocksWithTrace(ctx context.Context, tracerOptsJSON
// first.
defer func() {
if r := recover(); r != nil {
log.Error("block_stream panic:", r)
log.Error("block_stream panic:", "err", r)
}
}()

Expand Down

0 comments on commit ec92838

Please sign in to comment.