Fix the server not reporting startup errors correctly.

This commit is contained in:
quake1337 2021-07-13 21:39:20 +02:00
parent 48370d74b7
commit f7c550a8ad

View file

@ -387,8 +387,8 @@ namespace TShockAPI
} }
catch (Exception ex) catch (Exception ex)
{ {
Log.Error("Fatal Startup Exception"); Log.ConsoleError("Fatal Startup Exception");
Log.Error(ex.ToString()); Log.ConsoleError(ex.ToString());
Environment.Exit(1); Environment.Exit(1);
} }
} }