...
 
Commits (2)
......@@ -118,7 +118,9 @@ def run(name: str,
try:
errcode = p.wait()
if errcode != 0:
if errcode == 2:
print(f'"{" ".join(cmd)}" was interrupted.')
elif errcode != 0:
print(f'"{" ".join(cmd)}" failed with exit code {errcode}')
raise subprocess.CalledProcessError(returncode=errcode, cmd=cmd)
except KeyboardInterrupt:
......