Index: Lib/subprocess.py =================================================================== --- Lib/subprocess.py (revision 83179) +++ Lib/subprocess.py (working copy) @@ -408,6 +408,7 @@ self.returncode = returncode self.cmd = cmd self.output = output + super(CalledProcessError, self).__init__(returncode, cmd, output) def __str__(self): return "Command '%s' returned non-zero exit status %d" % (self.cmd, self.returncode)