Don't print messages to the screen when where.exe fails to find something

This commit is contained in:
Alexander Karatarakis 2017-03-13 16:09:52 -07:00
parent e3bba294b4
commit 2d94b2198a

View File

@ -55,7 +55,7 @@ namespace vcpkg
static std::vector<fs::path> find_from_PATH(const std::wstring& name)
{
const std::wstring cmd = Strings::wformat(L"where.exe %s", name);
const std::wstring cmd = Strings::wformat(L"where.exe %s 2>&1", name);
auto out = System::cmd_execute_and_capture_output(cmd);
if (out.exit_code != 0)
{