layout.py: annotate assertion to figure out 'tahoe backup' failure

This commit is contained in:
Brian Warner 2011-08-27 12:52:53 -07:00
parent 482a7dd3f1
commit b8c90d24fc

View 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