Skip to content

Commit 9c00ecf

Browse files
committed
fix #167; include the original exception in .Status.DebugException (simpler than expected!)
1 parent 167f6fa commit 9c00ecf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/protobuf-net.Grpc/Configuration/SimpleRpcExceptionsInterceptor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ internal static bool ShouldWrap(Exception exception, out Status status)
112112
TimeoutException i => StatusCode.DeadlineExceeded,
113113
#pragma warning restore IDE0059 // needs more recent compiler than the CI server has
114114
_ => StatusCode.Unknown,
115-
}, exception.Message);
115+
}, exception.Message, exception);
116116
return true;
117117
}
118118

0 commit comments

Comments
 (0)