[LNT] r188228 - More useful error message when command execution fails.
Chris Matthews
cmatthews5 at apple.com
Mon Aug 12 16:43:22 PDT 2013
Author: cmatthews
Date: Mon Aug 12 18:43:22 2013
New Revision: 188228
URL: http://llvm.org/viewvc/llvm-project?rev=188228&view=rev
Log:
More useful error message when command execution fails.
Modified:
lnt/trunk/lnt/testing/util/commands.py
Modified: lnt/trunk/lnt/testing/util/commands.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/testing/util/commands.py?rev=188228&r1=188227&r2=188228&view=diff
==============================================================================
--- lnt/trunk/lnt/testing/util/commands.py (original)
+++ lnt/trunk/lnt/testing/util/commands.py Mon Aug 12 18:43:22 2013
@@ -56,7 +56,8 @@ def capture_with_result(args, include_st
p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=stderr)
except OSError,e:
if e.errno == errno.ENOENT:
- fatal('no such file or directory: %r' % args[0])
+ fatal('no such file or directory: %r when running %s.' % (args[0], \
+ ' '.join(args)))
raise
out,_ = p.communicate()
return out,p.wait()
More information about the llvm-commits
mailing list