style: change exception msg
This commit is contained in:
@@ -161,7 +161,7 @@ class Dumper
|
|||||||
|| !TryGetProp(props, "Role", out EPlayerRole role)
|
|| !TryGetProp(props, "Role", out EPlayerRole role)
|
||||||
|| !TryGetProp(props, "Inventory", out bool isInventory)
|
|| !TryGetProp(props, "Inventory", out bool isInventory)
|
||||||
|| !TryGetProp(props, "IsFakeItem", out bool isFakeItem))
|
|| !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<UIDataStruct>();
|
UIDataStruct uiData = uiDataFb.MapToStruct<UIDataStruct>();
|
||||||
|
|
||||||
@@ -191,7 +191,7 @@ class Dumper
|
|||||||
|| !TryGetProp(props, "UIData", out FStructFallback uiDataFb)
|
|| !TryGetProp(props, "UIData", out FStructFallback uiDataFb)
|
||||||
|| !TryGetProp(props, "Inventory", out bool isInventory)
|
|| !TryGetProp(props, "Inventory", out bool isInventory)
|
||||||
|| !TryGetProp(props, "IsFakeItem", out bool isFakeItem))
|
|| !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<UIDataStruct>();
|
UIDataStruct uiData = uiDataFb.MapToStruct<UIDataStruct>();
|
||||||
|
|
||||||
@@ -224,7 +224,7 @@ class Dumper
|
|||||||
|| !TryGetProp(props, "DlcIdEpic", out string epicId)
|
|| !TryGetProp(props, "DlcIdEpic", out string epicId)
|
||||||
|| !TryGetProp(props, "DlcIdGRDK", out string grdkId)
|
|| !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;
|
string? displayName = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user