Skip to content

Commit 68c8b23

Browse files
committed
Make error messages a little more descriptive
1 parent b81105f commit 68c8b23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

volatility3/framework/objects/utility.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ def address_to_string(
120120
The decoded string extracted from memory.
121121
"""
122122
if not isinstance(address, int):
123-
raise TypeError("It takes an int")
123+
raise TypeError("Address must be a valid integer")
124124

125125
if count < 1:
126-
raise ValueError("It requires a positive count")
126+
raise ValueError("Count must be greater than 0")
127127

128128
layer = context.layers[layer_name]
129129
text = b""

0 commit comments

Comments
 (0)