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)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
Console.WriteLine($"Exception calling '{invocationContext.HubMethodName}'");
|
Console.WriteLine($"Exception calling '{invocationContext.HubMethodName}': {ex}");
|
||||||
throw ex;
|
throw;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue