From 68c8b2389a7373d321afabe24f035024add1d012 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Fri, 31 Jan 2025 10:00:16 +0000 Subject: [PATCH] Make error messages a little more descriptive --- volatility3/framework/objects/utility.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/volatility3/framework/objects/utility.py b/volatility3/framework/objects/utility.py index 93216743c..500c0e9a5 100644 --- a/volatility3/framework/objects/utility.py +++ b/volatility3/framework/objects/utility.py @@ -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""