style: more info, comment out unneeded log

This commit is contained in:
2026-06-18 18:40:37 -03:00
parent 78623adff8
commit fd35bf91a0
+2 -2
View File
@@ -135,7 +135,7 @@ class Dumper
if (!TryGetProp<int>(props, "CharacterIndex", out int charIndex)) if (!TryGetProp<int>(props, "CharacterIndex", out int charIndex))
throw new KeyNotFoundException("CharacterIndex was not found."); throw new KeyNotFoundException("CharacterIndex was not found.");
if (charIndex == -1) return; if (charIndex == -1) return; // there is a -1 character (template, placeholder, spectator or smth)
if (!TryGetStringProp<FText>(props, "DisplayName", out string charName) || !TryGetStringProp<FName>(props, "IconFilePath", out string charIconFilePath)) if (!TryGetStringProp<FText>(props, "DisplayName", out string charName) || !TryGetStringProp<FName>(props, "IconFilePath", out string charIconFilePath))
throw new KeyNotFoundException("DisplayName or IconFilePath was not found."); throw new KeyNotFoundException("DisplayName or IconFilePath was not found.");
@@ -319,7 +319,7 @@ class Dumper
} }
} }
_log.Error($"Property '{propName}' returned an empty or null string."); //_log.Error($"Property '{propName}' returned an empty or null string.");
value = string.Empty; value = string.Empty;
return false; return false;
} }