~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/groupcompress.py

  • Committer: Jonathan Riddell
  • Date: 2011-05-31 13:52:18 UTC
  • mto: This revision was merged to the branch mainline in revision 5954.
  • Revision ID: jriddell@canonical.com-20110531135218-v6fxs6pad89awidf
Make error message less specific (might not be a local disk issue) and pass through zlib error

Show diffs side-by-side

added added

removed removed

Lines of Context:
469
469
                try:
470
470
                    self._manager._prepare_for_extract()
471
471
                except zlib.error as value:
472
 
                    raise errors.DecompressCorruption()
 
472
                    raise errors.DecompressCorruption("zlib: " + str(value))
473
473
                block = self._manager._block
474
474
                self._bytes = block.extract(self.key, self._start, self._end)
475
475
                # There are code paths that first extract as fulltext, and then