Skip to content

Commit c4274c9

Browse files
committed
Linux: Fix exception message in TimespecVol3::__sub__()
1 parent 4895af4 commit c4274c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

volatility3/framework/symbols/linux/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ def __sub__(self, timespec) -> "TimespecVol3":
903903
"""Returns a new TimespecVol3 object that subtracts the values in the timespec
904904
argument from the current object's values"""
905905
if not isinstance(timespec, (TimespecVol3, extensions.timespec64)):
906-
raise TypeError("Cannot add a TimespecVol3 to this object")
906+
raise TypeError("Cannot substract this object to a TimespecVol3")
907907

908908
result = TimespecVol3(
909909
tv_sec=self.tv_sec - timespec.tv_sec,

0 commit comments

Comments
 (0)