lib/backup/s3remote: fix typos (#6694)

Fixes a few typos in errors in lib/backup/s3remote package.
This commit is contained in:
Juraj Bubniak 2024-07-29 14:18:31 +02:00 committed by GitHub
parent e5d279bb71
commit 11c0b05e8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -285,7 +285,7 @@ func (fs *FS) UploadPart(p common.Part, r io.Reader) error {
_, err := fs.uploader.Upload(context.Background(), input)
if err != nil {
return fmt.Errorf("cannot upoad data to %q at %s (remote path %q): %w", p.Path, fs, path, err)
return fmt.Errorf("cannot upload data to %q at %s (remote path %q): %w", p.Path, fs, path, err)
}
if uint64(sr.size) != p.Size {
return fmt.Errorf("wrong data size uploaded to %q at %s; got %d bytes; want %d bytes", p.Path, fs, sr.size, p.Size)
@ -374,7 +374,7 @@ func (fs *FS) CreateFile(filePath string, data []byte) error {
}
_, err := fs.uploader.Upload(context.Background(), input)
if err != nil {
return fmt.Errorf("cannot upoad data to %q at %s (remote path %q): %w", filePath, fs, path, err)
return fmt.Errorf("cannot upload data to %q at %s (remote path %q): %w", filePath, fs, path, err)
}
l := int64(len(data))
if sr.size != l {