Skip to content
This repository
Browse code

Unwrapped thrown exceptions

Developers were getting wrapped exceptions which were not very
distinguishable and required a lot of digging to pull out the base
exception which is the most relevant piece.
  • Loading branch information...
commit cfdd04c6ead31b74138e0ef3171cb887b054a3ac 1 parent a61ee95
N. Taylor Mullen authored August 07, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  SignalR.Client/Connection.cs
2  SignalR.Client/Connection.cs
@@ -229,7 +229,7 @@ private Task Negotiate(IClientTransport transport)
229 229
                     if (task.IsFaulted)
230 230
                     {
231 231
                         Stop();
232  
-                        tcs.SetException(task.Exception);
  232
+                        tcs.SetException(task.Exception.Unwrap());
233 233
                     }
234 234
                     else if (task.IsCanceled)
235 235
                     {

0 notes on commit cfdd04c

Please sign in to comment.
Something went wrong with that request. Please try again.