Commit 29876066 authored by Brad King's avatar Brad King
Browse files

ExternalData: Improve error message when we fail to create a file

Report the underlying system error.
parent 3a7ee535
...@@ -949,7 +949,7 @@ function(_ExternalData_link_or_copy src dst) ...@@ -949,7 +949,7 @@ function(_ExternalData_link_or_copy src dst)
endif() endif()
if(result) if(result)
file(REMOVE "${tmp}") 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() endif()
# Atomically create/replace the real destination. # Atomically create/replace the real destination.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment