From 54b74cee915a103f1fef065cd2d7c7b5fc50755a Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Sun, 29 May 2005 23:03:28 +0000
Subject: [PATCH] in die(), tweak the message displayed when a backup file
 can't be written, so as to not duplicate a translted string

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2566 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 ChangeLog  | 2 ++
 src/nano.c | 5 ++---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index f4173e63..5f5f35d1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -88,6 +88,8 @@ CVS code -
 - nano.c:
   die()
 	- Rename variable ret to retval for consistency. (DLR)
+	- Tweak the message displayed when a backup file can't be
+	  written, so as to not duplicate a translted string. (DLR)
   copy_filestruct()
 	- Rename variable prev to copy to avoid confusion. (DLR)
   print1opt_full()
diff --git a/src/nano.c b/src/nano.c
index a63ff34f..1471380e 100644
--- a/src/nano.c
+++ b/src/nano.c
@@ -176,9 +176,8 @@ void die_save_file(const char *die_filename)
     if (!failed)
 	fprintf(stderr, _("\nBuffer written to %s\n"), retval);
     else
-	fprintf(stderr,
-		_("\nBuffer not written to %s (too many backup files?)\n"),
-		retval);
+	fprintf(stderr, _("\nBuffer not written to %s: %s\n"), retval,
+		_("Too many backup files?"));
 
     free(retval);
 }
-- 
GitLab