From 11c0b05e8aad7b411017c92d71402de876640cc8 Mon Sep 17 00:00:00 2001 From: Juraj Bubniak Date: Mon, 29 Jul 2024 14:18:31 +0200 Subject: [PATCH] lib/backup/s3remote: fix typos (#6694) Fixes a few typos in errors in lib/backup/s3remote package. --- lib/backup/s3remote/s3.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/backup/s3remote/s3.go b/lib/backup/s3remote/s3.go index 9625e5235..f734cbf74 100644 --- a/lib/backup/s3remote/s3.go +++ b/lib/backup/s3remote/s3.go @@ -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 {