Make error messages a little more descriptive

This commit is contained in:
Mike Auty
2025-01-31 10:00:16 +00:00
parent b81105f508
commit 68c8b2389a
+2 -2
View File
@@ -120,10 +120,10 @@ def address_to_string(
The decoded string extracted from memory.
"""
if not isinstance(address, int):
raise TypeError("It takes an int")
raise TypeError("Address must be a valid integer")
if count < 1:
raise ValueError("It requires a positive count")
raise ValueError("Count must be greater than 0")
layer = context.layers[layer_name]
text = b""