From c25365d5ff658ebb89c2e9515007ced77f55c80c Mon Sep 17 00:00:00 2001 From: Marcel Admiraal Date: Sat, 29 Jan 2022 07:16:34 +0000 Subject: [PATCH] Be more verbose about why msbuild tools could not be found (cherry picked from commit 51834a4589339beae3b9d7a313f70b546392a0ef) --- modules/mono/build_scripts/mono_reg_utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/mono/build_scripts/mono_reg_utils.py b/modules/mono/build_scripts/mono_reg_utils.py index bad4314ce1a..596129c02cf 100644 --- a/modules/mono/build_scripts/mono_reg_utils.py +++ b/modules/mono/build_scripts/mono_reg_utils.py @@ -103,10 +103,10 @@ def find_msbuild_tools_path_reg(): raise ValueError("Cannot find `installationPath` entry") except ValueError as e: print("Error reading output from vswhere: " + e.message) - except WindowsError: - pass # Fine, vswhere not found - except (subprocess.CalledProcessError, OSError): - pass + except subprocess.CalledProcessError as e: + print(e.output) + except OSError as e: + print(e) # Try to find 14.0 in the Registry