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 b1d3a81 commit 8a4a973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filemanager/s3manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (m *S3Manager) Upload(ctx context.Context, file *os.File, prefixes ...strin
output, err := s3manager.UploadWithContext(ctx, uploadInput)
if err != nil {
if codeErr, ok := err.(codeError); ok && codeErr.Code() == "MissingRegion" {
err = fmt.Errorf(`Bucket '%s' not found.`, m.config.Bucket)
err = fmt.Errorf("bucket %q not found", m.config.Bucket)
}
return UploadedFile{}, err
}
Expand Down

0 comments on commit 8a4a973

Please sign in to comment.