refactor(shared-kernel): ♻ suppress acceptable warning

This commit is contained in:
Collin M. Barrett 2020-09-12 15:36:49 -05:00
parent bf74ca66b1
commit 240d38729d

View file

@ -29,7 +29,9 @@ public static async Task<int> TryRunWithLoggingAsync(this IHost host, Func<Task>
await host.RunAsync();
return 0;
}
#pragma warning disable CA1031 // Do not catch general exception types
catch (Exception ex)
#pragma warning restore CA1031 // Do not catch general exception types
{
Log.Fatal(ex, "Host terminated unexpectedly");
return 1;