mirror of
https://github.com/mandiant/capa.git
synced 2025-12-06 04:41:00 -08:00
Include the type of value when the value of a Number is unexpected
This commit is contained in:
@@ -61,7 +61,7 @@ class Number(Feature):
|
||||
elif isinstance(self.value, float):
|
||||
return str(self.value)
|
||||
else:
|
||||
raise ValueError("invalid value type")
|
||||
raise ValueError("invalid value type %s" % (type(self.value)))
|
||||
|
||||
|
||||
# max recognized structure size (and therefore, offset size)
|
||||
|
||||
Reference in New Issue
Block a user