Include the type of value when the value of a Number is unexpected

This commit is contained in:
Xusheng
2023-03-03 22:55:54 +08:00
parent 42e877671b
commit b49213bef6

View File

@@ -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)