From e83429aa067fa83cda356955328eb0d0f96bc0ec Mon Sep 17 00:00:00 2001 From: Justin Brooks Date: Tue, 3 Oct 2023 12:58:45 -0400 Subject: [PATCH] Return the result if the completion cannot be parsed --- .../main/kotlin/com/connectrpc/protocols/GRPCInterceptor.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/library/src/main/kotlin/com/connectrpc/protocols/GRPCInterceptor.kt b/library/src/main/kotlin/com/connectrpc/protocols/GRPCInterceptor.kt index ef797b04..5ac12fb5 100644 --- a/library/src/main/kotlin/com/connectrpc/protocols/GRPCInterceptor.kt +++ b/library/src/main/kotlin/com/connectrpc/protocols/GRPCInterceptor.kt @@ -174,8 +174,7 @@ internal class GRPCInterceptor( trailers = trailers, ) } else { - val exception = ConnectException(result.code) - StreamResult.Complete(exception.code, exception, trailers) + result } }, )