From ec11baabc6e79d3785d75c83526b7e382d31be50 Mon Sep 17 00:00:00 2001 From: Thomas VAILLIER Date: Fri, 13 Nov 2020 20:13:07 +0100 Subject: [PATCH] Change in code sample : do not use `throw ex` (#20557) --- aspnetcore/signalr/hub-filters.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnetcore/signalr/hub-filters.md b/aspnetcore/signalr/hub-filters.md index c39f8e8f05..59364ce521 100644 --- a/aspnetcore/signalr/hub-filters.md +++ b/aspnetcore/signalr/hub-filters.md @@ -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; } }