From 8bbfa80cdb248254c323abc8627a9e63bc0469f1 Mon Sep 17 00:00:00 2001 From: Rui Xia Date: Wed, 19 Jun 2019 16:41:53 -0700 Subject: Report any error message encountered by `get_visual_studio_directory_from_vswhere` --- install.bat | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install.bat b/install.bat index cdbc6377..f0305ab4 100644 --- a/install.bat +++ b/install.bat @@ -547,7 +547,10 @@ local function get_msvc_env_setup_cmd() local x64 = vars.UNAME_M=="x86_64" -- 1. try visual studio command line tools of VS 2017 or higher - local vsdir = get_visual_studio_directory_from_vswhere() + local vsdir, err = get_visual_studio_directory_from_vswhere() + if err then + print(" Error when finding Visual Studio directory from vswhere: "..err) + end if vsdir then local vcvarsall = vsdir .. '\\VC\\Auxiliary\\Build\\vcvarsall.bat' if exists(vcvarsall) then -- cgit v1.2.3-55-g6feb