Skip to content

Commit

Permalink
Make error messages a little more descriptive
Browse files Browse the repository at this point in the history
  • Loading branch information
ikelos committed Jan 31, 2025
1 parent b81105f commit 68c8b23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions volatility3/framework/objects/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -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""
Expand Down

0 comments on commit 68c8b23

Please sign in to comment.