Skip to content

Commit

Permalink
chore: updating error
Browse files Browse the repository at this point in the history
  • Loading branch information
fracasula authored Sep 27, 2024
1 parent 23c19cc commit b1d3a81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filemanager/digitaloceanmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit b1d3a81

Please sign in to comment.