linter: report it as an error when running the linting program fails

When something goes wrong, nano should beep and the status bar should
use the error color (red by default).

This fixes https://savannah.gnu.org/bugs/?57116.
master
Benno Schulenberg 2019-10-26 11:52:53 +02:00
parent fc716156a4
commit 2b49a19793
1 changed files with 1 additions and 1 deletions

View File

@ -2890,7 +2890,7 @@ void do_linter(void)
waitpid(pid_lint, &lint_status, 0); waitpid(pid_lint, &lint_status, 0);
if (!WIFEXITED(lint_status) || WEXITSTATUS(lint_status) > 2) { if (!WIFEXITED(lint_status) || WEXITSTATUS(lint_status) > 2) {
statusbar(invocation_error(openfile->syntax->linter)); statusline(ALERT, _("Error invoking '%s'"), openfile->syntax->linter);
return; return;
} }