Skip to content

Conversation

@glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Nov 8, 2021

Motivation:

In #1290 a 'cause' was added to GRPCStatus so use have access the error
which resulted in the status. We use the GRPCStatusTransformable
protocol to transform errors to statuses, but we missed adding passing
along the cause in a bunch of places.

Modifications:

  • Add a cause to the status for a handful of additional error types

Result:

More errors provide a cause when converted to a status

Motivation:

In grpc#1290 a 'cause' was added to `GRPCStatus` so use have access the error
which resulted in the status. We use the `GRPCStatusTransformable`
protocol to transform errors to statuses, but we missed adding passing
along the cause in a bunch of places.

Modifications:

- Add a cause to the status for a handful of additional error types

Result:

More errors provide a cause when converted to a status
@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Nov 8, 2021
@glbrntt glbrntt requested a review from fabianfett November 8, 2021 10:25
Copy link
Collaborator

@fabianfett fabianfett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it!

@glbrntt glbrntt merged commit e12afd3 into grpc:main Nov 8, 2021
@glbrntt glbrntt deleted the gb-propagate-error-cause branch November 8, 2021 11:15
bimawa pushed a commit to StreamLayer/grpc-swift that referenced this pull request Nov 10, 2021
Motivation:

In grpc#1290 a 'cause' was added to `GRPCStatus` so use have access the error
which resulted in the status. We use the `GRPCStatusTransformable`
protocol to transform errors to statuses, but we missed adding passing
along the cause in a bunch of places.

Modifications:

- Add a cause to the status for a handful of additional error types

Result:

More errors provide a cause when converted to a status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants