Skip to content

Commit

Permalink
Merge pull request #61
Browse files Browse the repository at this point in the history
Do not hide errors during deserialization
  • Loading branch information
theRainbird authored Jul 2, 2024
2 parents 25125c1 + 6e462b0 commit 94d3394
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CoreRemoting/RemotingClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,10 @@ private void ProcessRpcResultMessage(WireMessage message)
}
catch (Exception e)
{
Console.WriteLine(e);
throw;
clientRpcContext.Error = true;
clientRpcContext.RemoteException = new RemoteInvocationException(
message: e.Message,
innerEx: e.GetType().IsSerializable ? e : null);
}
}
clientRpcContext.WaitHandle.Set();
Expand Down

0 comments on commit 94d3394

Please sign in to comment.