Skip to content

Commit

Permalink
handle connection errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zivillian committed Nov 15, 2021
1 parent f10e5bb commit cf380c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ommstats/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ static async Task Main(string[] args)
catch (OperationCanceledException)
{
}
catch (SocketException ex)
{
logger.LogError(ex, "Error while executing OmmStats");
}
catch (Exception ex)
{
logger.LogError(ex, "Error while executing OmmStats");
Expand Down

0 comments on commit cf380c9

Please sign in to comment.