]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Include the number of remaining shares of the right version in NotEnoughSharesError...
authorDaira Hopwood <david-sarah@jacaranda.org>
Tue, 14 May 2013 16:53:51 +0000 (17:53 +0100)
committerDaira Hopwood <david-sarah@jacaranda.org>
Tue, 14 May 2013 22:20:47 +0000 (23:20 +0100)
Signed-off-by: Daira Hopwood <david-sarah@jacaranda.org>
src/allmydata/mutable/retrieve.py

index fd97b37d4d15e854159c57616fb8622bd5301ae6..2be92163ec822df2c972bee9005a5ee264aa6a1f 100644 (file)
@@ -969,15 +969,18 @@ class Retrieve:
         """
 
         format = ("ran out of servers: "
-                  "have %(have)d of %(total)d segments "
-                  "found %(bad)d bad shares "
+                  "have %(have)d of %(total)d segments; "
+                  "found %(bad)d bad shares; "
+                  "have %(remaining)d remaining shares of the right version; "
                   "encoding %(k)d-of-%(n)d")
         args = {"have": self._current_segment,
                 "total": self._num_segments,
                 "need": self._last_segment,
                 "k": self._required_shares,
                 "n": self._total_shares,
-                "bad": len(self._bad_shares)}
+                "bad": len(self._bad_shares),
+                "remaining": len(self.remaining_sharemap),
+               }
         raise NotEnoughSharesError("%s, last failure: %s" %
                                    (format % args, str(self._last_failure)))