From 95e39e5f465af5efd0eff6c8cac1ce915b3033a6 Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Thu, 12 Aug 2004 02:52:14 +0000
Subject: [PATCH] add missing error message simplifications from before

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

diff --git a/src/files.c b/src/files.c
index 8e7a3eec..573578fd 100644
--- a/src/files.c
+++ b/src/files.c
@@ -3013,7 +3013,7 @@ void save_history(void)
 		h->data = charealloc(h->data, strlen(h->data) + 2);
 		strcat(h->data, "\n");
 		if (fputs(h->data, hist) == EOF) {
-		    rcfile_error(N_("Unable to write ~/.nano_history file: %s\n"), strerror(errno));
+		    rcfile_error(N_("Error writing %s: %s"), nanohist, strerror(errno));
 		    goto come_from;
 		}
 	    }
diff --git a/src/nano.c b/src/nano.c
index 0fb0e5f2..2b0079b6 100644
--- a/src/nano.c
+++ b/src/nano.c
@@ -1837,7 +1837,7 @@ void do_spell(void)
 	i = write_file(temp, TRUE, FALSE, FALSE);
 
     if (i == -1) {
-	statusbar(_("Unable to write temp file: %s"), strerror(errno));
+	statusbar(_("Error writing temp file: %s"), strerror(errno));
 	free(temp);
 	return;
     }
-- 
GitLab