298760661f ExternalData: Improve error message when we fail to create a file Acked-by: Kitware Robot <[email protected]> Acked-by: Ben Boeckel <[email protected]> Merge-request: !6038
@@ -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}")
# Atomically create/replace the real destination.