The source project of this merge request has been removed.
Merged requested to merge (removed):fix-missing-curl-logs-on-download-failure into master
file(DOWNLOAD <url> EXPECTED_HASH <hash> LOG <logs>) fails to download the requested file, the hash check will also fail and make the command exit without actually returning the curl logs as requested by the
LOG argument. Which does not help to diagnose why download failed.
This MR fixes this issue by ensuring the requested curl logs are returned even on download failure.
This fix is related to #24093 (closed) (to help diagnose the problem)
Issue: #24093 (closed)