Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AsyncS3: throw FilesystemOperationFailed exceptions in case upload or listContent fails #1819

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

glaubinix
Copy link
Contributor

Currently, the async s3 adapter throws a Symfony\Component\HttpClient\Exception\TransportException in case a request fails. To match other adapters, this PR converts those exceptions to FilesystemOperationFailed.

@frankdejonge
Copy link
Member

Hi @glaubinix, could you convert the test from generated mocks to the S3ClientStub like the other tests? The rest looks like a nice contribution, much appreciated.

@glaubinix
Copy link
Contributor Author

Sure thing! Adjusted the test to match the other tests.

@frankdejonge
Copy link
Member

Running the tests now :) will release when green

@frankdejonge frankdejonge merged commit 2b6b74a into thephpleague:3.x Sep 27, 2024
6 checks passed
@glaubinix glaubinix deleted the async-s3-exceptions branch September 27, 2024 10:00
@glaubinix
Copy link
Contributor Author

Thank you!

@frankdejonge
Copy link
Member

Out for a few, but will tag a release this afternoon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants