CloudMigrations: Fix snapshot creation on Windows systems (#92941)

* cloudmigration: improve error logging stringify body

* deps: update migration snapshot library to v1.3.0 (fix to Windows)
This commit is contained in:
Matheus Macabu
2024-09-05 15:34:20 +02:00
committed by GitHub
parent c6fb9884a0
commit 95ef2a1eb2
4 changed files with 5 additions and 5 deletions
@@ -86,7 +86,7 @@ func (s3 *S3) PresignedURLUpload(ctx context.Context, presignedURL, key string,
if response.StatusCode >= 400 {
body, _ := io.ReadAll(response.Body)
return fmt.Errorf("unexpected response: status=%d body=%s", response.StatusCode, body)
return fmt.Errorf("unexpected response: status=%d body=%s", response.StatusCode, string(body))
}
return nil