From bea5e85f3ea79d1838e027b5d0880aa018686d84 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Fri, 5 Jun 2020 12:01:55 +0200 Subject: [PATCH] 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. --- src/nano.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/nano.c b/src/nano.c index 1f14149d..6927ac80 100644 --- a/src/nano.c +++ b/src/nano.c @@ -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,