~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-05-07 10:04:52 UTC
  • mfrom: (3408.4.1 ianc-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20080507100452-ya8ofjjd5f5pb9q7
Nicer error when smart server started on an address already in use
        (Andrea Corbellini)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2667
2667
        self.path = path
2668
2668
        self.kind = kind
2669
2669
        self.user_encoding = osutils.get_user_encoding()
 
2670
 
 
2671
 
 
2672
class CannotBindAddress(BzrError):
 
2673
 
 
2674
    _fmt = 'Cannot bind address "%(host)s:%(port)i": %(orig_error)s.'
 
2675
 
 
2676
    def __init__(self, host, port, orig_error):
 
2677
        BzrError.__init__(self, host=host, port=port,
 
2678
            orig_error=orig_error[1])