Improve error message when file exists

This commit is contained in:
unman 2017-04-16 02:08:54 +01:00
parent 40fe0d9c8f
commit 1db0daea9c
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C

View File

@ -89,7 +89,7 @@ void wait_for_result(void)
if (hdr.error_code != 0) { if (hdr.error_code != 0) {
switch (hdr.error_code) { switch (hdr.error_code) {
case EEXIST: case EEXIST:
call_error_handler("File copy: not overwriting existing file. Clean QubesIncoming dir, and retry copy%s%s", last_filename_prefix, last_filename); call_error_handler("A file named %s already exists in QubesIncoming dir", last_filename);
break; break;
case EINVAL: case EINVAL:
call_error_handler("File copy: Corrupted data from packer%s%s", last_filename_prefix, last_filename); call_error_handler("File copy: Corrupted data from packer%s%s", last_filename_prefix, last_filename);