]> granicus.if.org Git - python/commitdiff
Adjust #8956 to add the bad signal number to the exception message.
authorBrian Curtin <brian.curtin@gmail.com>
Tue, 7 Sep 2010 13:24:38 +0000 (13:24 +0000)
committerBrian Curtin <brian.curtin@gmail.com>
Tue, 7 Sep 2010 13:24:38 +0000 (13:24 +0000)
Lib/subprocess.py

index e53b69456e1629159a9a0bec7dd8cfaaf6b28300..d699ed07ce18a9df36cbfa97cd0114cb4ccbe6ba 100644 (file)
@@ -983,7 +983,7 @@ class Popen(object):
             elif sig == signal.CTRL_BREAK_EVENT:
                 os.kill(self.pid, signal.CTRL_BREAK_EVENT)
             else:
-                raise ValueError("Unsupported signal")
+                raise ValueError("Unsupported signal: {}".format(sig))
 
         def terminate(self):
             """Terminates the process