mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 15:22:09 +00:00
TOOLS/docutils-wrapper: properly propagate failures
This commit is contained in:
parent
d6f70ef96b
commit
375e527620
@ -55,8 +55,11 @@ for opt, optarg in zip(argv, argv[1:]):
|
||||
depfile = optarg
|
||||
|
||||
try:
|
||||
subprocess.run(argv)
|
||||
proc = subprocess.run(argv, check=True)
|
||||
convert_depfile(output, depfile)
|
||||
except:
|
||||
remove(output)
|
||||
remove(depfile)
|
||||
sys.exit(1)
|
||||
|
||||
sys.exit(proc.returncode)
|
||||
|
Loading…
Reference in New Issue
Block a user