diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-11-20 18:07:52 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-11-20 18:07:52 (GMT) |
commit | 5f780400572508a8179de6a6c13b58b7be417ef5 (patch) | |
tree | ed232d267f7aedd0d5bbce754db1d5e8c6056afd /Lib/subprocess.py | |
parent | c610e3e55e650f58551edf811ab8a848689f70fe (diff) | |
download | cpython-5f780400572508a8179de6a6c13b58b7be417ef5.zip cpython-5f780400572508a8179de6a6c13b58b7be417ef5.tar.gz cpython-5f780400572508a8179de6a6c13b58b7be417ef5.tar.bz2 |
add filename to ENOENT message #4925
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r-- | Lib/subprocess.py | 2 |
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) |