Merge pull request #57384 from madmiraal/vswhere-errors

Be more verbose about why msbuild tools could not be found
This commit is contained in:
Ignacio Roldán Etcheverry 2022-01-29 12:45:14 +01:00 committed by GitHub
commit 9467350f37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -96,10 +96,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 OSError:
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