]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
layout.py: annotate assertion to figure out 'tahoe backup' failure
authorBrian Warner <warner@lothar.com>
Sat, 27 Aug 2011 19:52:53 +0000 (12:52 -0700)
committerBrian Warner <warner@lothar.com>
Sat, 27 Aug 2011 19:52:53 +0000 (12:52 -0700)
src/allmydata/mutable/layout.py

index 42c20324725156666befc608ec894e23f97ad733..e3835a1949e85fa3d5222700c4c22c6a5d1392d9 100644 (file)
@@ -499,7 +499,7 @@ class SDMFSlotWriteProxy:
         """
         for k in ["sharedata", "encprivkey", "signature", "verification_key",
                   "share_hash_chain", "block_hash_tree"]:
-            assert k in self._share_pieces
+            assert k in self._share_pieces, (k, self._share_pieces.keys())
         # This is the only method that actually writes something to the
         # remote server.
         # First, we need to pack the share into data that we can write