mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-26 06:39:43 +03:00
speller: when something goes wrong with 'sort', do not blame 'spell'
That is, check the exit status of 'sort' before the one of 'spell'.
This commit is contained in:
parent
260588af1e
commit
f92606491c
@ -2492,14 +2492,14 @@ const char *do_int_speller(const char *tempfile_name)
|
||||
waitpid(pid_sort, &sort_status, 0);
|
||||
waitpid(pid_uniq, &uniq_status, 0);
|
||||
|
||||
if (WIFEXITED(spell_status) == 0 || WEXITSTATUS(spell_status))
|
||||
return _("Error invoking \"spell\"");
|
||||
if (WIFEXITED(uniq_status) == 0 || WEXITSTATUS(uniq_status))
|
||||
return _("Error invoking \"uniq\"");
|
||||
|
||||
if (WIFEXITED(sort_status) == 0 || WEXITSTATUS(sort_status))
|
||||
return _("Error invoking \"sort -f\"");
|
||||
|
||||
if (WIFEXITED(uniq_status) == 0 || WEXITSTATUS(uniq_status))
|
||||
return _("Error invoking \"uniq\"");
|
||||
if (WIFEXITED(spell_status) == 0 || WEXITSTATUS(spell_status))
|
||||
return _("Error invoking \"spell\"");
|
||||
|
||||
/* When all went okay. */
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user