~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Ian Clatworthy
  • Date: 2008-05-07 06:19:52 UTC
  • mfrom: (3365.1.1 bzr)
  • mto: This revision was merged to the branch mainline in revision 3412.
  • Revision ID: ian.clatworthy@canonical.com-20080507061952-drb871eni5ajwol4
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:
2690
2690
        self.path = path
2691
2691
        self.kind = kind
2692
2692
        self.user_encoding = osutils.get_user_encoding()
 
2693
 
 
2694
 
 
2695
class CannotBindAddress(BzrError):
 
2696
 
 
2697
    _fmt = 'Cannot bind address "%(host)s:%(port)i": %(orig_error)s.'
 
2698
 
 
2699
    def __init__(self, host, port, orig_error):
 
2700
        BzrError.__init__(self, host=host, port=port,
 
2701
            orig_error=orig_error[1])