reword an error message for consistency

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2825 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2005-07-08 01:49:43 +00:00
parent 1228699f2c
commit 757f739367
2 changed files with 5 additions and 3 deletions

View File

@ -16,8 +16,10 @@ CVS code -
snprintf() to write the error string we return, as the one snprintf() to write the error string we return, as the one
formatted value is a simple string, and so altspell_error will formatted value is a simple string, and so altspell_error will
always be long enough to hold it. Also remove unnecessary always be long enough to hold it. Also remove unnecessary
initialization of altspell_error, and refactor so that msglen initialization of altspell_error, refactor so that msglen is
is no longer needed. (DLR) no longer needed, and make the error message more similar to
what the internal spell checker returns under the same
circumstances. (DLR)
allow_pending_sigwinch() allow_pending_sigwinch()
- Simplify by using the "?" operator instead of an if clause. - Simplify by using the "?" operator instead of an if clause.
(DLR) (DLR)

View File

@ -2399,7 +2399,7 @@ const char *do_alt_speller(char *tempfile_name)
if (!WIFEXITED(alt_spell_status) || if (!WIFEXITED(alt_spell_status) ||
WEXITSTATUS(alt_spell_status) != 0) { WEXITSTATUS(alt_spell_status) != 0) {
char *altspell_error; char *altspell_error;
char *invoke_error = _("Could not invoke \"%s\""); char *invoke_error = _("Error invoking \"%s\"");
#ifndef NANO_SMALL #ifndef NANO_SMALL
/* Turn the mark back on if it was on before. */ /* Turn the mark back on if it was on before. */