diff --git a/internal/reqdata/set.go b/internal/reqdata/set.go index f595c14..b56a898 100644 --- a/internal/reqdata/set.go +++ b/internal/reqdata/set.go @@ -144,7 +144,7 @@ func (i *Set) parseJSON(req *http.Request) error { if err == io.EOF { return nil } - return err + return fmt.Errorf("%s: %w", err, ErrInvalidJSON) } for name, param := range i.service.Form {