Skip to content

Commit

Permalink
Enhance error message
Browse files Browse the repository at this point in the history
  • Loading branch information
MSWS committed Aug 24, 2024
1 parent 9a81961 commit 3014ae7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?? "");
}
Expand Down

0 comments on commit 3014ae7

Please sign in to comment.