~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Vincent Ladeuil
  • Date: 2011-02-16 23:58:03 UTC
  • mto: This revision was merged to the branch mainline in revision 5684.
  • Revision ID: v.ladeuil+lp@free.fr-20110216235803-rvxyf3w5viyz2fw8
Detect unknown references during interpolation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3230
3230
    def __init__(self, string, refs):
3231
3231
        self.string = string
3232
3232
        self.refs = '->'.join(refs)
 
3233
 
 
3234
class InterpolationUnknownOption(BzrError):
 
3235
 
 
3236
    _fmt = 'Option %(name)s is not defined.'
 
3237
 
 
3238
    def __init__(self, name):
 
3239
        self.name = name