diff --git a/src/dumper/dumper.cs b/src/dumper/dumper.cs index 8d98e45..6f759b5 100644 --- a/src/dumper/dumper.cs +++ b/src/dumper/dumper.cs @@ -161,7 +161,7 @@ class Dumper || !TryGetProp(props, "Role", out EPlayerRole role) || !TryGetProp(props, "Inventory", out bool isInventory) || !TryGetProp(props, "IsFakeItem", out bool isFakeItem)) - throw new KeyNotFoundException("Type, UIData, Role, Inventory or IsFakeItem was not found."); + throw new KeyNotFoundException($"Required properties missing for Item: {rowKey}"); UIDataStruct uiData = uiDataFb.MapToStruct(); @@ -191,7 +191,7 @@ class Dumper || !TryGetProp(props, "UIData", out FStructFallback uiDataFb) || !TryGetProp(props, "Inventory", out bool isInventory) || !TryGetProp(props, "IsFakeItem", out bool isFakeItem)) - throw new KeyNotFoundException("Role, UIData, Inventory or IsFakeItem was not found"); + throw new KeyNotFoundException($"Required properties missing for offering: {rowKey}"); UIDataStruct uiData = uiDataFb.MapToStruct(); @@ -224,7 +224,7 @@ class Dumper || !TryGetProp(props, "DlcIdEpic", out string epicId) || !TryGetProp(props, "DlcIdGRDK", out string grdkId) ) - throw new KeyNotFoundException("DLC id or DisplayName was not found"); + throw new KeyNotFoundException($"Required properties missing for DLC: {rowKey}"); string? displayName = null;