From: David Lawrence Ramsey Date: Wed, 3 May 2006 13:11:00 +0000 (+0000) Subject: clarify error messages X-Git-Tag: v1.3.12~214 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f0e3ca6e880c9c328ce06b25f2176c513f384fee;p=nano.git clarify error messages git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3466 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index c66cb106..93b094bd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -79,8 +79,8 @@ CVS code - save the original file, if possible, since that's better than saving nothing. (DLR, problem found by Bill Marcum, solution suggested by Jordi) - - Clarify the error message when writing a temporary file for - prepending fails. (DLR) + - Clarify the error messages when creating a temporary file or + writing one for prepending fails. (DLR) - Simplify the routine for closing the file just before we indicate success on the statusbar. (DLR) - global.c: @@ -167,6 +167,10 @@ CVS code - (DLR) - Change all rcfile error messages to refer to commands instead of directives, for consistency with nanorc.5. (DLR) +- text.c: + do_spell() + - Clarify the error message when creating a temporary file + fails. (DLR) - winio.c: parse_kbinput() - If we get NANO_CONTROL_8, properly handle it in all cases. diff --git a/src/files.c b/src/files.c index 4240cb1e..ff58840d 100644 --- a/src/files.c +++ b/src/files.c @@ -1477,7 +1477,7 @@ int write_file(const char *name, FILE *f_open, bool tmp, append_type tempname = safe_tempfile(&f); if (tempname == NULL) { - statusbar(_("Could not create temp file: %s"), + statusbar(_("Error writing temp file: %s"), strerror(errno)); goto cleanup_and_exit; } diff --git a/src/text.c b/src/text.c index bd5ca26a..dedde3a1 100644 --- a/src/text.c +++ b/src/text.c @@ -2287,7 +2287,7 @@ void do_spell(void) const char *spell_msg; if (temp == NULL) { - statusbar(_("Could not create temp file: %s"), strerror(errno)); + statusbar(_("Error writing temp file: %s"), strerror(errno)); return; }