From 375e527620f1216dbd0cfb2aa14cabc6b060563e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Date: Mon, 6 Mar 2023 18:00:57 +0000 Subject: TOOLS/docutils-wrapper: properly propagate failures --- TOOLS/docutils-wrapper.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'TOOLS') 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) -- cgit v1.2.3