From 4f360a778bb93092f1405be4e643eeebbb6a5678 Mon Sep 17 00:00:00 2001 From: neru Date: Thu, 18 Jun 2026 18:45:36 -0300 Subject: [PATCH] style: change exception msg --- src/dumper/dumper.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;