Skip to content

Commit

Permalink
Return error from WriteFilesToStream
Browse files Browse the repository at this point in the history
  • Loading branch information
omerzi committed Apr 10, 2024
1 parent e45c025 commit 9215b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/filestream/filestream.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +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 {
return writeErr(multipartWriter, file, err)
return errors.Join(err, writeErr(multipartWriter, file, err))
}
}

Expand Down

0 comments on commit 9215b0f

Please sign in to comment.