summaryrefslogtreecommitdiffstats
path: root/Lib/subprocess.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r--Lib/subprocess.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index d699ed0..b40d2a8 100644
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -1255,6 +1255,8 @@ class Popen(object):
errno = int(hex_errno, 16)
if errno != 0:
err_msg = os.strerror(errno)
+ if errno == errno.ENOENT:
+ err_msg += ': ' + repr(args[0])
raise child_exception_type(errno, err_msg)
raise child_exception_type(err_msg)