~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Jelmer Vernooij
  • Date: 2012-02-23 19:45:15 UTC
  • mto: This revision was merged to the branch mainline in revision 6486.
  • Revision ID: jelmer@samba.org-20120223194515-1ctgfzj362m0tu0k
Use bzrdir.controldir for generic access to control directories.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1761
1761
 
1762
1762
class ConfigOptionValueError(BzrError):
1763
1763
 
1764
 
    _fmt = """Bad value "%(value)s" for option "%(name)s"."""
 
1764
    _fmt = ('Bad value "%(value)s" for option "%(name)s".\n'
 
1765
            'See ``bzr help %(name)s``')
1765
1766
 
1766
1767
    def __init__(self, name, value):
1767
1768
        BzrError.__init__(self, name=name, value=value)
2767
2768
    _fmt = "No mail-to address (--mail-to) or output (-o) specified."
2768
2769
 
2769
2770
 
2770
 
class UnknownMailClient(BzrError):
2771
 
 
2772
 
    _fmt = "Unknown mail client: %(mail_client)s"
2773
 
 
2774
 
    def __init__(self, mail_client):
2775
 
        BzrError.__init__(self, mail_client=mail_client)
2776
 
 
2777
 
 
2778
2771
class MailClientNotFound(BzrError):
2779
2772
 
2780
2773
    _fmt = "Unable to find mail client with the following names:"\