From 93987400787f7e5174a4d0aff7ffb1cc4eb5c4b1 Mon Sep 17 00:00:00 2001 From: MagicBear Date: Sat, 3 Feb 2024 22:28:54 +0800 Subject: [PATCH] fix: error exception message on skip_encode,skip_decode (#88) --- module/structurer.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/module/structurer.py b/module/structurer.py index 72be7cf..fa0dfd1 100755 --- a/module/structurer.py +++ b/module/structurer.py @@ -60,11 +60,10 @@ def skip_decode( } else: raise Exception( - f"Expected ArrayProperty or StructProperty, got {type_name} in {path}" + f"Expected ArrayProperty or MapProperty or StructProperty, got {type_name} in {path}" ) return value - def skip_encode( writer: FArchiveWriter, property_type: str, properties: dict[str, Any] ) -> int: @@ -93,7 +92,7 @@ def skip_encode( return len(properties["value"]) else: raise Exception( - f"Expected ArrayProperty or StructProperty, got {property_type}" + f"Expected ArrayProperty or MapProperty or StructProperty, got {property_type}" )