From be49c616a5d6f15c1d7b0ddddeb4e995dd014b60 Mon Sep 17 00:00:00 2001 From: neru Date: Thu, 18 Jun 2026 18:02:20 -0300 Subject: [PATCH] style: change invalid state exception msg --- src/dumper/dumper.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/dumper/dumper.cs b/src/dumper/dumper.cs index 04f29e6..4968f36 100644 --- a/src/dumper/dumper.cs +++ b/src/dumper/dumper.cs @@ -114,7 +114,7 @@ class Dumper public void DumpCharacters() { if (_dataPak == null || _provider == null) - throw new InvalidOperationException("Attempted to call dump function without dumper initialization"); + throw new InvalidOperationException("Attempted to call dump function without dumper initialization/state"); _log.Info("Dumping characters"); @@ -157,7 +157,7 @@ class Dumper public void DumpCharacterIcons() { if (_provider == null) - throw new InvalidOperationException("Attempted to call dump function without dumper initialization"); + throw new InvalidOperationException("Attempted to call dump function without dumper initialization/state"); _log.Info("Dumping character icons"); @@ -172,7 +172,7 @@ class Dumper public void DumpItems() { if (_dataPak == null || _provider == null) - throw new InvalidOperationException("Attempted to call dump function without dumper initialization"); + throw new InvalidOperationException("Attempted to call dump function without dumper initialization/state"); _log.Info("Dumping character icons"); @@ -225,7 +225,7 @@ class Dumper public void DumpItemIcons() { if (_provider == null) - throw new InvalidOperationException("Attempted to call dump function without dumper initialization"); + throw new InvalidOperationException("Attempted to call dump function without dumper initialization/state"); _log.Info("Dumping item icons"); @@ -283,7 +283,7 @@ class Dumper private void ExportIcon(string assetPath, string outPath) { - if (_provider == null) throw new InvalidOperationException("Attempted to export icon when dumper was not initialized/invalid"); + if (_provider == null) throw new InvalidOperationException("Attempted to call dump function without dumper initialization/state"); string cleanPath = assetPath.Contains('.') ? assetPath[..assetPath.LastIndexOf('.')] : assetPath; string fileName = Path.GetFileName(cleanPath) + ".png";