~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-01-02 20:46:44 UTC
  • mfrom: (3145.1.2 no-inventory4)
  • Revision ID: pqm@pqm.ubuntu.com-20080102204644-m6dav0cszl5e471x
Handle missing tools gracefully in diff --using (abentley)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1870
1870
        BzrError.__init__(self, path)
1871
1871
 
1872
1872
 
 
1873
class ExecutableMissing(BzrError):
 
1874
 
 
1875
    _fmt = "%(exe_name)s could not be found on this machine"
 
1876
 
 
1877
    def __init__(self, exe_name):
 
1878
        BzrError.__init__(self, exe_name=exe_name)
 
1879
 
 
1880
 
1873
1881
class NoDiff(BzrError):
1874
1882
 
1875
1883
    _fmt = "Diff is not installed on this machine: %(msg)s"