From b1d3a817e3fe90a192c37bfd9309975394f5c64e Mon Sep 17 00:00:00 2001 From: Francesco Casula Date: Fri, 27 Sep 2024 10:54:44 +0200 Subject: [PATCH] chore: updating error --- filemanager/digitaloceanmanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filemanager/digitaloceanmanager.go b/filemanager/digitaloceanmanager.go index 3a6ddec1..7902605d 100644 --- a/filemanager/digitaloceanmanager.go +++ b/filemanager/digitaloceanmanager.go @@ -102,7 +102,7 @@ func (manager *digitalOceanManager) Upload(ctx context.Context, file *os.File, p output, err := DOmanager.UploadWithContext(ctx, uploadInput) if err != nil { if awsError, ok := err.(awserr.Error); ok && awsError.Code() == "MissingRegion" { - err = fmt.Errorf(`Bucket '%s' not found.`, manager.Config.Bucket) + err = fmt.Errorf("bucket %q not found", manager.Config.Bucket) } return UploadedFile{}, err }