diff --git a/src/Cocona.Lite/Lite/Hosting/CoconaLiteAppHost.cs b/src/Cocona.Lite/Lite/Hosting/CoconaLiteAppHost.cs index 8eb193e..1a33581 100644 --- a/src/Cocona.Lite/Lite/Hosting/CoconaLiteAppHost.cs +++ b/src/Cocona.Lite/Lite/Hosting/CoconaLiteAppHost.cs @@ -61,8 +61,6 @@ public async Task RunAsync(CancellationToken cancellationToken) { console.Error.WriteLine(ex.ToString()); Environment.ExitCode = 1; - // NOTE: Exception is suppressed here to match the behavior of Cocona. - //throw; } _waitForShutdown.Set(); diff --git a/src/Cocona/Hosting/CoconaHostedService.cs b/src/Cocona/Hosting/CoconaHostedService.cs index f51fbf8..6e9b154 100644 --- a/src/Cocona/Hosting/CoconaHostedService.cs +++ b/src/Cocona/Hosting/CoconaHostedService.cs @@ -71,7 +71,6 @@ private async Task ExecuteCoconaApplicationAsync(Task waitForApplicationStarted) { _console.Error.WriteLine(ex.ToString()); Environment.ExitCode = 1; - throw; } finally {