Commit 757f7393 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

reword an error message for consistency

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2825 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 5 additions and 3 deletions
+5 -3
...@@ -16,8 +16,10 @@ CVS code - ...@@ -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)
......
...@@ -2399,7 +2399,7 @@ const char *do_alt_speller(char *tempfile_name) ...@@ -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. */
......
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