~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/protocol.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-10-25 10:05:09 UTC
  • mfrom: (2941.1.1 ianc-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20071025100509-veed3zxqsmgwdug1
clean error msg on bzr+ssh connection closing (#115601) (Ian Clatworthy)

Show diffs side-by-side

added added

removed removed

Lines of Context:
399
399
        while not line or line[-1] != '\n':
400
400
            # TODO: this is inefficient - but tuples are short.
401
401
            new_char = self._request.read_bytes(1)
 
402
            if new_char == '':
 
403
                # end of file encountered reading from server
 
404
                raise errors.ConnectionReset(
 
405
                    "please check connectivity and permissions",
 
406
                    "(and try -Dhpss if further diagnosis is required)")
402
407
            line += new_char
403
 
            assert new_char != '', "end of file reading from server."
404
408
        return line
405
409
 
406
410
    def query_version(self):