Skip to content

Commit

Permalink
Prevent exception propagation to host
Browse files Browse the repository at this point in the history
  • Loading branch information
mayuki committed Mar 5, 2024
1 parent b881d43 commit 11b6f5b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/Cocona.Lite/Lite/Hosting/CoconaLiteAppHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 0 additions & 1 deletion src/Cocona/Hosting/CoconaHostedService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ private async Task ExecuteCoconaApplicationAsync(Task waitForApplicationStarted)
{
_console.Error.WriteLine(ex.ToString());
Environment.ExitCode = 1;
throw;
}
finally
{
Expand Down

0 comments on commit 11b6f5b

Please sign in to comment.