mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
Display status on download error
This commit is contained in:
parent
62d9473412
commit
51da39c1ed
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user