Skip to content

Commit

Permalink
Correct Read Error Format
Browse files Browse the repository at this point in the history
Changed error text to be `read error` instead of `rpc error` to limit confusion.
Batch flag to string corrected to show `true|false` instead of bool type.
  • Loading branch information
EasterTheBunny committed Nov 15, 2024
1 parent a4d3c22 commit afdc3a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/services/relay/evm/read/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ func newErrorFromCall(err error, call Call, block string, batch bool) ErrRead {
func (e ErrRead) Error() string {
var builder strings.Builder

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

if e.Detail != nil {
Expand Down

0 comments on commit afdc3a8

Please sign in to comment.