Bug 909867 - Fix case on WhichError in mercurial setup wizard; r=trivial
authorGregory Szorc <gps@mozilla.com>
Tue, 27 Aug 2013 11:44:54 -0700
changeset 144474 e45c455f085a1c4a33ebf9000c4ce1b1cfc6ccfb
parent 144473 6ce16afcc8bdb125bf6a3b6cb9cf28dff7ac8026
child 144495 8b4c3606442d260fc3919fcd12b206c14f3adf1c
push id25164
push usergszorc@mozilla.com
push dateTue, 27 Aug 2013 18:45:25 +0000
treeherdermozilla-central@e45c455f085a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstrivial
bugs909867
milestone26.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 909867 - Fix case on WhichError in mercurial setup wizard; r=trivial DONTBUILD (NPOTB)
tools/mercurial/hgsetup/wizard.py
--- a/tools/mercurial/hgsetup/wizard.py
+++ b/tools/mercurial/hgsetup/wizard.py
@@ -88,17 +88,17 @@ class MercurialSetupWizard(object):
         try:
             os.makedirs(self.ext_dir)
         except OSError as e:
             if e.errno != errno.EEXIST:
                 raise
 
         try:
             hg = which.which('hg')
-        except which.whichError as e:
+        except which.WhichError as e:
             print(e)
             print('Try running |mach bootstrap| to ensure your environment is '
                 'up to date.')
             return 1
 
         c = MercurialConfig(config_path)
 
         print(INITIAL_MESSAGE)