From 3014ae7da22dbbf7414eadcc0d7feadba7f44435 Mon Sep 17 00:00:00 2001 From: MSWS Date: Fri, 23 Aug 2024 23:33:13 -0700 Subject: [PATCH] Enhance error message --- public/Jailbreak.Public/Mod/SpecialDay/AbstractSpecialDay.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/Jailbreak.Public/Mod/SpecialDay/AbstractSpecialDay.cs b/public/Jailbreak.Public/Mod/SpecialDay/AbstractSpecialDay.cs index bac60125..24fcf2c8 100644 --- a/public/Jailbreak.Public/Mod/SpecialDay/AbstractSpecialDay.cs +++ b/public/Jailbreak.Public/Mod/SpecialDay/AbstractSpecialDay.cs @@ -294,7 +294,7 @@ protected void SetConvarValue(ConVar? cvar, object value) { } else { Server.ExecuteCommand(cvar.Name + " " + value); } } catch (Exception e) { Server.PrintToChatAll( - $"There was an error setting {cvar.Name} ({cvar.Type}) to {value}"); + $"There was an error setting {cvar.Name} ({cvar.Type}) to {value} ({value.GetType()}"); Server.PrintToConsole(e.Message); Server.PrintToConsole(e.StackTrace ?? ""); }