Change in code sample : do not use `throw ex` (#20557)

pull/20566/head
Thomas VAILLIER 2020-11-13 20:13:07 +01:00 committed by GitHub
parent 730521de63
commit ec11baabc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}