aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src
diff options
context:
space:
mode:
authorMark Salisbury <mark.salisbury@hp.com>2018-11-02 17:20:02 -0600
committerRobert Schumacher <roschuma@microsoft.com>2018-11-02 16:20:02 -0700
commit1c2c69529e0ca44bd2fa4da68507d07aa3f310a4 (patch)
tree348d7d629ab0a06a7906859406ad4f110177a654 /toolsrc/src
parent01371c88e742532f4ff0cd58c74d5f48c104a854 (diff)
downloadvcpkg-1c2c69529e0ca44bd2fa4da68507d07aa3f310a4.tar.gz
vcpkg-1c2c69529e0ca44bd2fa4da68507d07aa3f310a4.zip
When downloading a tool, print URL and filepath (#4640)
I'm seeing the error below: Building package zlib[core]:x86-windows... A suitable version of git was not found (required v2.17.1). Downloading portable git v2.17.1... Downloading git... WinHttpSendRequest() failed: 12002 I suspect the WinHttpSendRequest error is due to being behind a proxy - most download issues seem to be this. Or perhaps because a sys admin somewhere has disabled WinInet, somehow. I don't know. I don't know how to debug WinHttpSendRequest(); a quick google search didn't help. By printing the URL that vcpkg is trying to download, and where it's trying to download to, I can pop the URL in my browser, save it at the location specified, and move on with my life.
Diffstat (limited to 'toolsrc/src')
-rw-r--r--toolsrc/src/vcpkg/tools.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/toolsrc/src/vcpkg/tools.cpp b/toolsrc/src/vcpkg/tools.cpp
index 313b5997b..e28291428 100644
--- a/toolsrc/src/vcpkg/tools.cpp
+++ b/toolsrc/src/vcpkg/tools.cpp
@@ -191,6 +191,7 @@ namespace vcpkg
if (!fs.exists(tool_data.download_path))
{
System::println("Downloading %s...", tool_name);
+ System::println(" %s -> %s", tool_data.url, tool_data.download_path.string());
Downloads::download_file(fs, tool_data.url, tool_data.download_path, tool_data.sha512);
System::println("Downloading %s... done.", tool_name);
}