mirror of
https://github.com/reactos/CMake.git
synced 2024-11-29 06:20:23 +00:00
cmake: Teach "-E tar" to report file name on failure to read from disk
The libarchive-provided error message does not always include the file name, so add it to the message ourselves to ensure users know which file fails.
This commit is contained in:
parent
2e71d92ef2
commit
90f9c42732
@ -271,7 +271,9 @@ bool cmArchiveWrite::AddFile(const char* file,
|
||||
cm_archive_entry_copy_pathname(e, dest);
|
||||
if(archive_read_disk_entry_from_file(this->Disk, e, -1, 0) != ARCHIVE_OK)
|
||||
{
|
||||
this->Error = "archive_read_disk_entry_from_file: ";
|
||||
this->Error = "archive_read_disk_entry_from_file '";
|
||||
this->Error += file;
|
||||
this->Error += "': ";
|
||||
this->Error += cm_archive_error_string(this->Disk);
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user