From 07becc3c8f4cee37f5dd205e96189519aa4f2f5e Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sat, 2 Apr 2022 11:53:53 -0700 Subject: [PATCH] Change language from fatal startup exceptions The previous language was true but slightly unhelpful to non-native English speakers and users who aren't familiar with server software. When a fatal startup exception occurs now, TShock tells you what this means and that it won't be able to start until this is resolved. --- CHANGELOG.md | 1 + TShockAPI/TShock.cs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b6693bb1..bf3dfed3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin ## Upcoming changes * Fixed `TSPlayer.GiveItem` not working if the player is in lava. (@gohjoseph) * Only allow using Teleportation Potions, Magic Conch, and Demon Conch whilst holding them. (@drunderscore) +* Updated server startup language to be more clear when encountering a fatal startup error. Now, the server gives more context as to what happened so that there's a better chance of people being able to help themselves. (@hakusaro) ## TShock 4.5.17 * Fixed duplicate characters (twins) after repeatedly logging in as the same character due to connection not being immediately closed during `NetHooks_NameCollision`. (@gohjoseph) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index e326c6f9..2c604513 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -386,7 +386,8 @@ namespace TShockAPI } catch (Exception ex) { - Log.ConsoleError("Fatal Startup Exception"); + Log.ConsoleError("TShock encountered a problem from which it cannot recover. The following message may help diagnose the problem."); + Log.ConsoleError("Until the problem is resolved, TShock will not be able to start (and will crash on startup)."); Log.ConsoleError(ex.ToString()); Environment.Exit(1); }