~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/knit.py

  • Committer: Robert Collins
  • Date: 2006-03-09 04:54:21 UTC
  • mto: (1596.2.5 integration)
  • mto: This revision was merged to the branch mainline in revision 1601.
  • Revision ID: robertc@robertcollins.net-20060309045421-b3c91fa905a6bcbb
Bugfix error message output in knit error raising.

Show diffs side-by-side

added added

removed removed

Lines of Context:
953
953
        if len(rec) != 4:
954
954
            raise KnitCorrupt(self._filename, 'unexpected number of records')
955
955
        if rec[1] != version_id:
956
 
            raise KnitCorrupt(self.file.name, 
 
956
            raise KnitCorrupt(self._filename, 
957
957
                              'unexpected version, wanted %r' % version_id)
958
958
        lines = int(rec[2])
959
959
        record_contents = self._read_record_contents(df, lines)