mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-28 12:34:53 +02:00
Make error messages a little more descriptive
This commit is contained in:
@@ -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""
|
||||
|
||||
Reference in New Issue
Block a user