~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Vincent Ladeuil
  • Date: 2011-04-04 12:12:57 UTC
  • mto: (5743.5.1 config-concrete-stores)
  • mto: This revision was merged to the branch mainline in revision 5832.
  • Revision ID: v.ladeuil+lp@free.fr-20110404121257-m4htb561v7b4c2ur
Implement loading a config store from a string or a file. 

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):