Skip to content

Commit 1685fd8

Browse files
authored
Fix fanout response unmarshalable error type (minio#1839)
Type `error` cannot be JSON unmarshaled, so it should not be used in responses. Change the type to a string.
1 parent 1d018af commit 1685fd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api-put-object-fan-out.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ type PutObjectFanOutResponse struct {
6262
ETag string `json:"etag,omitempty"`
6363
VersionID string `json:"versionId,omitempty"`
6464
LastModified *time.Time `json:"lastModified,omitempty"`
65-
Error error `json:"error,omitempty"`
65+
Error string `json:"error,omitempty"`
6666
}
6767

6868
// PutObjectFanOut - is a variant of PutObject instead of writing a single object from a single

0 commit comments

Comments
 (0)