diff options
author | Thomas Weißschuh <thomas@t-8ch.de> | 2023-03-06 18:00:57 +0000 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-03-24 02:18:39 +0000 |
commit | 375e527620f1216dbd0cfb2aa14cabc6b060563e (patch) | |
tree | 5df3c37f42b3f7cc8f4f9b230d5fc1876137c44a /TOOLS | |
parent | d6f70ef96b8a6beeec025beeb775257728c60751 (diff) | |
download | mpv-375e527620f1216dbd0cfb2aa14cabc6b060563e.tar.bz2 mpv-375e527620f1216dbd0cfb2aa14cabc6b060563e.tar.xz |
TOOLS/docutils-wrapper: properly propagate failures
Diffstat (limited to 'TOOLS')
-rwxr-xr-x | TOOLS/docutils-wrapper.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/TOOLS/docutils-wrapper.py b/TOOLS/docutils-wrapper.py index ff2757a1d8..4e31c37417 100755 --- a/TOOLS/docutils-wrapper.py +++ b/TOOLS/docutils-wrapper.py @@ -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) |