tweaks: shorten an error message, to be appropriate in all situations

Saying "Cannot write backup %s" is misleading when it is the original
file that cannot be reread.
master
Benno Schulenberg 2020-07-17 17:10:46 +02:00
parent 8eddf7bc26
commit 4cefd699ca
1 changed files with 2 additions and 1 deletions

View File

@ -1718,7 +1718,8 @@ bool make_backup_of(char *realname)
return TRUE;
}
statusline(HUSH, _("Cannot write backup %s: %s"), backupname, strerror(errno));
/* TRANSLATORS: The %s is the reason of failure. */
statusline(HUSH, _("Cannot make backup: %s"), strerror(errno));
free(backupname);
return FALSE;
}