Bug 1234612: Print path when failing to create virtualenv r=gps
authorAndreas Tolfsen <ato@mozilla.com>
Wed, 30 Dec 2015 11:33:36 +0000
changeset 278156 17576c804d39415c937c6cbeb2136f05d8299963
parent 278155 8d8d40c30f5bdc6187d60300b6a3cab4728cd043
child 278157 00590dc73f7e57c3d0803310a4ba9122f5adcb72
push id69699
push useratolfsen@mozilla.com
push dateFri, 01 Jan 2016 14:02:56 +0000
treeherdermozilla-inbound@17576c804d39 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps
bugs1234612
milestone46.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 1234612: Print path when failing to create virtualenv r=gps r=gps
python/mozbuild/mozbuild/virtualenv.py
--- a/python/mozbuild/mozbuild/virtualenv.py
+++ b/python/mozbuild/mozbuild/virtualenv.py
@@ -139,17 +139,18 @@ class VirtualenvManager(object):
 
         args = [sys.executable, self.virtualenv_script_path,
             self.virtualenv_root]
 
         result = subprocess.call(args, stdout=self.log_handle,
             stderr=subprocess.STDOUT, env=env)
 
         if result:
-            raise Exception('Error creating virtualenv.')
+            raise Exception(
+                'Failed to create virtualenv: %s' % self.virtualenv_root)
 
         return self.virtualenv_root
 
     def packages(self):
         with file(self.manifest_path, 'rU') as fh:
             packages = [line.rstrip().split(':')
                         for line in fh]
         return packages