Skip to content

Commit e4cfbee

Browse files
authored
Use native error wrapping (#1098)
1 parent cfadf71 commit e4cfbee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

request_helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func (r *RequestBuilder) WithJsonBody(obj interface{}) *RequestBuilder {
123123
var err error
124124
r.Body, err = json.Marshal(obj)
125125
if err != nil {
126-
r.Error = fmt.Errorf("failed to marshal json object: %s", err)
126+
r.Error = fmt.Errorf("failed to marshal json object: %w", err)
127127
}
128128
return r.WithJsonContentType()
129129
}

0 commit comments

Comments
 (0)