mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 14:48:19 -05:00
ExternalData: Improve error message when we fail to create a file
Report the underlying system error.
This commit is contained in:
@@ -949,7 +949,7 @@ function(_ExternalData_link_or_copy src dst)
|
||||
endif()
|
||||
if(result)
|
||||
file(REMOVE "${tmp}")
|
||||
message(FATAL_ERROR "Failed to create\n ${tmp}\nfrom\n ${obj}")
|
||||
message(FATAL_ERROR "Failed to create:\n \"${tmp}\"\nfrom:\n \"${obj}\"\nwith error:\n ${result}")
|
||||
endif()
|
||||
|
||||
# Atomically create/replace the real destination.
|
||||
|
||||
Reference in New Issue
Block a user