unit test detection of non-consecutive ivs
[python-delta-tar] / deltatar / crypto.py
index 53150f1..d18d406 100755 (executable)
@@ -1367,7 +1367,7 @@ class Decrypt (Crypto):
                 and self.last_iv [1] != cnt - 1:
             raise NonConsecutiveIV ("iv %s counter not successor of "
                                     "last object (expected %d, found %d)"
-                                    % (fixed, iv_fmt (self.last_iv [1]), cnt))
+                                    % (iv_fmt (iv), self.last_iv [1], cnt))
         self.last_iv = (fixed, cnt)