[lit] Improve error message when lit fails to executable a command by
[oota-llvm.git] / utils / lit / lit / TestRunner.py
index 78a4fa8e65b07523cd05302aab1ea959fd65fba0..19e2514f7c0df21ff4e8a3b0376294c2e359d43a 100644 (file)
@@ -207,7 +207,7 @@ def executeShCmd(cmd, shenv, results):
                                           env = cmd_shenv.env,
                                           close_fds = kUseCloseFDs))
         except OSError as e:
-            raise InternalShellError(j, 'Could not create process due to {}'.format(e))
+            raise InternalShellError(j, 'Could not create process ({}) due to {}'.format(executable, e))
 
         # Immediately close stdin for any process taking stdin from us.
         if stdin == subprocess.PIPE: