Skip to content

Commit

Permalink
fix: multiple error
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Jul 29, 2024
1 parent 857fdb7 commit 0ba733c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/web/jsonrpc/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ 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 @@ -293,7 +294,7 @@ func (h *Handler) errResp(resp *Response, msg string, code ErrorCode, err error)
return
}

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

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

0 comments on commit 0ba733c

Please sign in to comment.