From a5fe584cee466f7e2d9988fba2ce1cc231696b5a Mon Sep 17 00:00:00 2001 From: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com> Date: Sat, 18 Oct 2025 11:13:10 -0700 Subject: [PATCH] - Pass through main exception on json deserialization failure - Fix below to above --- Libraries/SPTarkov.Server.Core/Servers/ConfigServer.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Libraries/SPTarkov.Server.Core/Servers/ConfigServer.cs b/Libraries/SPTarkov.Server.Core/Servers/ConfigServer.cs index 37e0dafb..669c15d3 100644 --- a/Libraries/SPTarkov.Server.Core/Servers/ConfigServer.cs +++ b/Libraries/SPTarkov.Server.Core/Servers/ConfigServer.cs @@ -89,14 +89,14 @@ public class ConfigServer } catch (JsonException ex) { - Logger.Error($"Config file: {file} failed to deserialize", ex); - throw new Exception($"Server will not run until the: {file} config error mentioned above is fixed"); + Logger.Error($"Config file: {file} failed to deserialize"); + throw new Exception($"Server will not run until the: {file} config error mentioned above is fixed", ex); } if (deserializedContent == null) { Logger.Error($"Config file: {file} is corrupt. Use a site like: https://jsonlint.com to find the issue."); - throw new Exception($"Server will not run until the: {file} config error mentioned below is fixed"); + throw new Exception($"Server will not run until the: {file} config error mentioned above is fixed"); } _configs[$"spt-{FileUtil.StripExtension(file)}"] = deserializedContent;