Commit f0e3ca6e authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

clarify error messages

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3466 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 8 additions and 4 deletions
+8 -4
...@@ -79,8 +79,8 @@ CVS code - ...@@ -79,8 +79,8 @@ CVS code -
save the original file, if possible, since that's better than save the original file, if possible, since that's better than
saving nothing. (DLR, problem found by Bill Marcum, solution saving nothing. (DLR, problem found by Bill Marcum, solution
suggested by Jordi) suggested by Jordi)
- Clarify the error message when writing a temporary file for - Clarify the error messages when creating a temporary file or
prepending fails. (DLR) writing one for prepending fails. (DLR)
- Simplify the routine for closing the file just before we - Simplify the routine for closing the file just before we
indicate success on the statusbar. (DLR) indicate success on the statusbar. (DLR)
- global.c: - global.c:
...@@ -167,6 +167,10 @@ CVS code - ...@@ -167,6 +167,10 @@ CVS code -
(DLR) (DLR)
- Change all rcfile error messages to refer to commands instead - Change all rcfile error messages to refer to commands instead
of directives, for consistency with nanorc.5. (DLR) 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: - winio.c:
parse_kbinput() parse_kbinput()
- If we get NANO_CONTROL_8, properly handle it in all cases. - If we get NANO_CONTROL_8, properly handle it in all cases.
......
...@@ -1477,7 +1477,7 @@ int write_file(const char *name, FILE *f_open, bool tmp, append_type ...@@ -1477,7 +1477,7 @@ int write_file(const char *name, FILE *f_open, bool tmp, append_type
tempname = safe_tempfile(&f); tempname = safe_tempfile(&f);
if (tempname == NULL) { if (tempname == NULL) {
statusbar(_("Could not create temp file: %s"), statusbar(_("Error writing temp file: %s"),
strerror(errno)); strerror(errno));
goto cleanup_and_exit; goto cleanup_and_exit;
} }
......
...@@ -2287,7 +2287,7 @@ void do_spell(void) ...@@ -2287,7 +2287,7 @@ void do_spell(void)
const char *spell_msg; const char *spell_msg;
if (temp == NULL) { if (temp == NULL) {
statusbar(_("Could not create temp file: %s"), strerror(errno)); statusbar(_("Error writing temp file: %s"), strerror(errno));
return; return;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment