Change in code sample : do not use `throw ex` (#20557)
parent
730521de63
commit
ec11baabc6
|
@ -83,8 +83,8 @@ public class CustomFilter : IHubFilter
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine($"Exception calling '{invocationContext.HubMethodName}'");
|
||||
throw ex;
|
||||
Console.WriteLine($"Exception calling '{invocationContext.HubMethodName}': {ex}");
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue