Skip to content

Commit

Permalink
tests: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Aug 4, 2024
1 parent 1f3fab7 commit 4bc943a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/web/jsonrpc/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (
"github.com/go-playground/validator/v10"
"github.com/swaggest/openapi-go"
"github.com/swaggest/usecase"
"go.uber.org/multierr"

"neptune/internal/pkg/mempool"
)
Expand Down Expand Up @@ -294,7 +293,7 @@ func (h *Handler) errResp(resp *Response, msg string, code ErrorCode, err error)
return
}

resp.Error.Data = multierr.Errors(err)
resp.Error.Data = err.Error()
}

func (h *Handler) fail(w http.ResponseWriter, err error, code ErrorCode) {
Expand Down

0 comments on commit 4bc943a

Please sign in to comment.