From f75713f07038762f6fd09e199886dd4b6c00284c Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Tue, 31 Aug 2021 19:47:34 +0300 Subject: [PATCH] git-update: dump output in case subproject download fails Part-of: --- git-update | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/git-update b/git-update index 948d0d4931..ec0f4704ff 100755 --- a/git-update +++ b/git-update @@ -207,7 +207,14 @@ if __name__ == "__main__": if options.manifest: meson = get_meson() - targets_s = subprocess.check_output(meson + ['subprojects', 'download']) + try: + targets_s = subprocess.check_output(meson + ['subprojects', 'download'], shell=False, universal_newlines=True) + except subprocess.CalledProcessError as err: + print(f"Subproject download Failed") + print(f"Output: {err.output}") + print(f"Exit code: {err.returncode}") + exit(err.returncode) + repos_commits = manifest_get_commits(options.manifest) FORCE_CHECKOUT = True else: