Skip to content

Commit

Permalink
[lit] Improve error message when lit fails to executable a command by
Browse files Browse the repository at this point in the history
showing the executable it tried to use.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253032 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
delcypher committed Nov 13, 2015
1 parent 74771a3 commit 0d86449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/lit/lit/TestRunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0d86449

Please sign in to comment.