Improve error message when file exists

(cherry picked from commit 1db0daea9c)
Notes from origin:
    Fixes QubesOS/qubes-issues#1240
pull/10/merge mm_d359d63f
unman 7 years ago committed by Marek Marczykowski-Górecki
parent 4de6e4d9be
commit d359d63fd6
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

@ -89,7 +89,7 @@ void wait_for_result(void)
if (hdr.error_code != 0) {
switch (hdr.error_code) {
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;
case EINVAL:
call_error_handler("File copy: Corrupted data from packer%s%s", last_filename_prefix, last_filename);

Loading…
Cancel
Save