/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-05-05 11:19:20 UTC
  • mfrom: (5830.1.1 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20110505111920-5fr176fp585jw922
(vila) Building blocks to implement a new config scheme (Section,
 Store, Stack) (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1766
1766
 
1767
1767
class ParseConfigError(BzrError):
1768
1768
 
 
1769
    _fmt = "Error(s) parsing config file %(filename)s:\n%(errors)s"
 
1770
 
1769
1771
    def __init__(self, errors, filename):
1770
 
        if filename is None:
1771
 
            filename = ""
1772
 
        message = "Error(s) parsing config file %s:\n%s" % \
1773
 
            (filename, ('\n'.join(e.msg for e in errors)))
1774
 
        BzrError.__init__(self, message)
 
1772
        BzrError.__init__(self)
 
1773
        self.filename = filename
 
1774
        self.errors = '\n'.join(e.msg for e in errors)
1775
1775
 
1776
1776
 
1777
1777
class NoEmailInUsername(BzrError):