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

Enrich error message #796

Merged
merged 6 commits into from
Jul 3, 2024
Merged

Conversation

DyfanJones
Copy link
Member

This PR will enrich error messages and align with boto3 error message template

# previous error message format
svc <- paws.storage::s3()
response <- svc$get_object(
  Bucket = "<bucket>",
  Key = "<key>",
  IfNoneMatch = "<etag>"
)
#> Error: SerializationError (HTTP 304). failed to read from query HTTP response body
# new error message format
client <- paws.storage::s3()
resp <- client$get_object(
  Bucket = "<bucket>",
  Key = "<key>",
  IfNoneMatch = "<etag>"
)
#> Error: SerializationError (HTTP 304). An error occurred (304) when calling the GetObject operation: Not Modified

@DyfanJones DyfanJones added the enhancement 💡 New feature or request label Jul 3, 2024
@DyfanJones DyfanJones added this to the paws.common-0.7.4 milestone Jul 3, 2024
@DyfanJones DyfanJones merged commit 8787301 into paws-r:main Jul 3, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 💡 New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant