Skip to content

Commit

Permalink
only write batch for batch calls
Browse files Browse the repository at this point in the history
  • Loading branch information
EasterTheBunny committed Nov 13, 2024
1 parent 5f161ac commit 1fa4974
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/services/relay/evm/read/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,12 @@ func (e ErrRead) Error() string {
var builder strings.Builder

builder.WriteString("[read error]")
builder.WriteString(fmt.Sprintf(" batch: %t;", e.Batch))
builder.WriteString(fmt.Sprintf(" err: %s;", e.Err.Error()))

if e.Batch {
builder.WriteString(" batch;")
}

if e.Detail != nil {
builder.WriteString(fmt.Sprintf(" block: %s;", e.Detail.Block))
builder.WriteString(fmt.Sprintf(" address: %s;", e.Detail.Address))
Expand Down

0 comments on commit 1fa4974

Please sign in to comment.