@@ -67,7 +67,7 @@ def _spawn_nt(cmd, search_path=1, verbose=0, dry_run=0):
6767 except OSError as exc :
6868 # this seems to happen when the command isn't found
6969 raise DistutilsExecError (
70- "command '%s' failed: %s" % (cmd [0 ], exc [- 1 ]))
70+ "command '%s' failed: %s" % (cmd [0 ], exc . args [- 1 ]))
7171 if rc != 0 :
7272 # and this reflects the command running but failing
7373 raise DistutilsExecError (
@@ -88,7 +88,7 @@ def _spawn_os2(cmd, search_path=1, verbose=0, dry_run=0):
8888 except OSError as exc :
8989 # this seems to happen when the command isn't found
9090 raise DistutilsExecError (
91- "command '%s' failed: %s" % (cmd [0 ], exc [- 1 ]))
91+ "command '%s' failed: %s" % (cmd [0 ], exc . args [- 1 ]))
9292 if rc != 0 :
9393 # and this reflects the command running but failing
9494 print ("command '%s' failed with exit status %d" % (cmd [0 ], rc ))
@@ -124,7 +124,7 @@ def _spawn_posix(cmd, search_path=1, verbose=0, dry_run=0):
124124 if exc .errno == errno .EINTR :
125125 continue
126126 raise DistutilsExecError (
127- "command '%s' failed: %s" % (cmd [0 ], exc [- 1 ]))
127+ "command '%s' failed: %s" % (cmd [0 ], exc . args [- 1 ]))
128128 if os .WIFSIGNALED (status ):
129129 raise DistutilsExecError (
130130 "command '%s' terminated by signal %d"
0 commit comments