Bug 1367329 - Fix error handling code in mozversioncontrol. r=gps, a=test-only
authorTed Mielczarek <ted@mielczarek.org>
Thu, 22 Jun 2017 12:54:25 -0400
changeset 411997 83004a183f631214b2c0375848fae11b5e690252
parent 411996 d4c3c0d298ab7bb427077aee989715a7f753971f
child 411998 eb96c581aa627afdbf884f4b686389f8283617bb
push id7519
push userryanvm@gmail.com
push dateTue, 18 Jul 2017 16:50:27 +0000
treeherdermozilla-beta@a90f8e94849d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps, test-only
bugs1367329
milestone55.0
Bug 1367329 - Fix error handling code in mozversioncontrol. r=gps, a=test-only MozReview-Commit-ID: Bu5FA9PhxJY
python/mozversioncontrol/mozversioncontrol/__init__.py
--- a/python/mozversioncontrol/mozversioncontrol/__init__.py
+++ b/python/mozversioncontrol/mozversioncontrol/__init__.py
@@ -21,18 +21,18 @@ def get_tool_path(tool):
     try:
         return which.which(tool + '.exe')
     except which.WhichError:
         try:
             return which.which(tool)
         except which.WhichError as e:
             print(e)
 
-    raise Exception('Unable to obtain %s path. Try running ' +
-                    '|mach bootstrap| to ensure your environment is up to ' +
+    raise Exception('Unable to obtain %s path. Try running '
+                    '|mach bootstrap| to ensure your environment is up to '
                     'date.' % tool)
 
 class Repository(object):
     '''A class wrapping utility methods around version control repositories.'''
     def __init__(self, path, tool):
         self.path = os.path.abspath(path)
         self._tool = get_tool_path(tool)
         self._env = os.environ.copy()