Display status on download error

This commit is contained in:
Ninetainedo 2016-09-25 00:25:40 +02:00
parent 62d9473412
commit 51da39c1ed

View File

@ -23,7 +23,7 @@ function(vcpkg_download_distfile VAR)
file(DOWNLOAD ${url} ${downloaded_file_path} STATUS download_status)
list(GET download_status 0 status_code)
if (NOT "${status_code}" STREQUAL "0")
message(STATUS "Downloading ${url}... Failed")
message(STATUS "Downloading ${url}... Failed. Status: ${download_status}")
file(REMOVE ${downloaded_file_path})
set(download_success 0)
else()