1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

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

View File

@@ -103,10 +103,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 WindowsError: 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