Cleanup backup/backup_s3.go

This commit is contained in:
Matthew Penner 2020-12-06 15:25:11 -07:00
parent bc3d92f9e6
commit b52c3fb61e

View File

@ -124,8 +124,7 @@ func (s *S3Backup) generateRemoteRequest(rc io.ReadCloser) error {
}
// Attempt to upload the part.
_, err := handlePart(part, partSize)
if err != nil {
if _, err := handlePart(part, partSize); err != nil {
l.WithField("part_id", part).WithError(err).Warn("failed to upload part")
return err
}