Skip to content

Commit

Permalink
CR
Browse files Browse the repository at this point in the history
  • Loading branch information
omerzi committed Apr 10, 2024
1 parent 92e15ed commit cda2dd4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions http/filestream/filestream.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ func WriteFilesToStream(multipartWriter *multipart.Writer, filesList []*FileInfo
defer ioutils.Close(multipartWriter, &err)
for _, file := range filesList {
if err = writeFile(multipartWriter, file); err != nil {
// Returning the error from writeFile with a possible error from the writeErr function
return errors.Join(err, writeErr(multipartWriter, file, err))
}
}
Expand Down

0 comments on commit cda2dd4

Please sign in to comment.