Merge pull request #57384 from madmiraal/vswhere-errors
Be more verbose about why msbuild tools could not be found
This commit is contained in:
commit
9467350f37
|
@ -96,10 +96,10 @@ def find_msbuild_tools_path_reg():
|
||||||
raise ValueError("Cannot find `installationPath` entry")
|
raise ValueError("Cannot find `installationPath` entry")
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
print("Error reading output from vswhere: " + e.message)
|
print("Error reading output from vswhere: " + e.message)
|
||||||
except OSError:
|
except subprocess.CalledProcessError as e:
|
||||||
pass # Fine, vswhere not found
|
print(e.output)
|
||||||
except (subprocess.CalledProcessError, OSError):
|
except OSError as e:
|
||||||
pass
|
print(e)
|
||||||
|
|
||||||
# Try to find 14.0 in the Registry
|
# Try to find 14.0 in the Registry
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue