Skip to content

Convert errors thrown from interceptor inbound or outbound stream #3

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

bauer-andreas
Copy link

While RPCConvertible errors are properly converted when thrown as part of the intercept method, errors thrown from within the producer closures or as part of the message sequences are not being converted.
This PR resolves that and adds the necessary unit tests to verify that.

Copy link

linux-foundation-easycla bot commented Jun 16, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Jun 16, 2025
@glbrntt
Copy link
Collaborator

glbrntt commented Jun 16, 2025

The "Check generated code" check will be fixed by #4

@bauer-andreas bauer-andreas force-pushed the rpc-convertible-support-interceptors branch from ae9a5f2 to 5f26c53 Compare June 18, 2025 12:50
@bauer-andreas bauer-andreas requested a review from glbrntt June 18, 2025 12:58
Copy link
Collaborator

@glbrntt glbrntt left a comment

Choose a reason for hiding this comment

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

Looks great but lint checker is unhappy:

/__w/grpc-swift-2/grpc-swift-2/Tests/GRPCCoreTests/Call/Server/Internal/ServerRPCExecutorTests.swift:417:47: warning: [EndOfLineComment] move end-of-line comment that exceeds the line length

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