diff --git a/core/services/relay/evm/read/errors.go b/core/services/relay/evm/read/errors.go index e84b2f4d653..8cc7724064c 100644 --- a/core/services/relay/evm/read/errors.go +++ b/core/services/relay/evm/read/errors.go @@ -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))