Be more verbose about why msbuild tools could not be found

(cherry picked from commit 51834a4589)
This commit is contained in:
Marcel Admiraal 2022-01-29 07:16:34 +00:00 committed by Rémi Verschelde
parent ba2e891ec8
commit c25365d5ff
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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