~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/remote.py

Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
389
389
                raise UnicodeEncodeError(encoding, val, start, end, reason)
390
390
        elif what == "ReadOnlyError":
391
391
            raise errors.TransportNotPossible('readonly transport')
 
392
        elif what == "ReadError":
 
393
            if orig_path is not None:
 
394
                error_path = orig_path
 
395
            else:
 
396
                error_path = resp[1]
 
397
            raise errors.ReadError(error_path)
392
398
        else:
393
399
            raise errors.SmartProtocolError('unexpected smart server error: %r' % (resp,))
394
400