Skip to content

Commit

Permalink
NOISSUE - Use message instead of error in JSON encoding (#77)
Browse files Browse the repository at this point in the history
Signed-off-by: Dusan Borovcanin <[email protected]>
  • Loading branch information
dborovcanin authored Nov 1, 2024
1 parent 8d2b7e2 commit ce6d7a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/http/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (hpe *httpProxyError) Error() string {

func (hpe *httpProxyError) MarshalJSON() ([]byte, error) {
return json.Marshal(struct {
Error string `json:"error"`
Error string `json:"message"`
}{
Error: hpe.err.Error(),
})
Expand Down

0 comments on commit ce6d7a3

Please sign in to comment.