emacsclient --alternate-editor=/no/such diagnostic

* lib-src/emacsclient.c (fail): Also output errno indication when
alternate editor fails.  I noticed this when debugging Bug#81716.
This commit is contained in:
Paul Eggert 2026-08-27 09:49:39 -07:00
parent 490cd601ea
commit e4dc8ddea9

View file

@ -779,8 +779,8 @@ fail (void)
memcpy (&new_argv[toks], main_argv + optind, extra_args_size);
execvp (*new_argv, new_argv);
message (true, "%s: error executing alternate editor \"%s\"\n",
progname, alternate_editor);
message (true, "%s: error executing alternate editor \"%s\": %s\n",
progname, alternate_editor, strerror (errno));
}
}
exit (EXIT_FAILURE);