We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfadf71 commit e4cfbeeCopy full SHA for e4cfbee
request_helpers.go
@@ -123,7 +123,7 @@ func (r *RequestBuilder) WithJsonBody(obj interface{}) *RequestBuilder {
123
var err error
124
r.Body, err = json.Marshal(obj)
125
if err != nil {
126
- r.Error = fmt.Errorf("failed to marshal json object: %s", err)
+ r.Error = fmt.Errorf("failed to marshal json object: %w", err)
127
}
128
return r.WithJsonContentType()
129
0 commit comments