mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 00:02:13 +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
|
depfile = optarg
|
||||||
|
|
||||||
try:
|
try:
|
||||||
subprocess.run(argv)
|
proc = subprocess.run(argv, check=True)
|
||||||
convert_depfile(output, depfile)
|
convert_depfile(output, depfile)
|
||||||
except:
|
except:
|
||||||
remove(output)
|
remove(output)
|
||||||
remove(depfile)
|
remove(depfile)
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
sys.exit(proc.returncode)
|
||||||
|
Loading…
Reference in New Issue
Block a user