mirror of
git://git.sv.gnu.org/nano.git
synced 2025-01-06 17:42:06 +03:00
tweaks: make an error message more accurate and reduce it to its essence
There is no need to be explicit about not having saved the buffer -- it is implied in the "Too many". And anyway, no one is ever going to see this message -- who will have a hundred thousand .save files? Trimming this message makes the tiny version smaller. Also, rewrap a neighbouring line.
This commit is contained in:
parent
32ee39e44a
commit
bea5e85f3e
@ -332,11 +332,10 @@ void emergency_save(const char *die_filename, struct stat *die_stat)
|
||||
if (!failed)
|
||||
fprintf(stderr, _("\nBuffer written to %s\n"), targetname);
|
||||
else if (*targetname != '\0')
|
||||
fprintf(stderr, _("\nBuffer not written to %s: %s\n"), targetname,
|
||||
strerror(errno));
|
||||
fprintf(stderr, _("\nBuffer not written to %s: %s\n"),
|
||||
targetname, strerror(errno));
|
||||
else
|
||||
fprintf(stderr, _("\nBuffer not written: %s\n"),
|
||||
_("Too many backup files?"));
|
||||
fprintf(stderr, _("\nToo many .save files"));
|
||||
|
||||
#ifndef NANO_TINY
|
||||
/* Try to chmod/chown the saved file to the values of the original file,
|
||||
|
Loading…
Reference in New Issue
Block a user