Skip to content

Commit cdd0d91

Browse files
Add logging for failure to start server
1 parent a472045 commit cdd0d91

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

ASCOM.Alpaca.Simulators/Program.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,12 @@ public static void Main(string[] args)
153153

154154
Console.WriteLine("OmniSim shutting down...");
155155
}
156+
catch (Exception ex)
157+
{
158+
Logging.LogError(ex.Message);
159+
Console.WriteLine("A fatal error has occurred and the OmniSim is shutting down.");
160+
Console.WriteLine(ex.Message);
161+
}
156162
finally
157163
{
158164
if (hasHandle)

0 commit comments

Comments
 (0)