Improve diagnostics of loading *.eln files

* src/pdumper.c (dump_do_dump_relocation): Improve diagnostics
when loading preloaded *.eln files fails.  (Bug#46790)
This commit is contained in:
Eli Zaretskii 2021-04-24 11:20:50 +03:00
parent 062e599480
commit 592ffd35b0

View file

@ -5335,7 +5335,11 @@ dump_do_dump_relocation (const uintptr_t dump_base,
comp_u->file = eln_fname;
comp_u->handle = dynlib_open (SSDATA (eln_fname));
if (!comp_u->handle)
error ("%s", dynlib_error ());
{
fprintf (stderr, "Error using execdir %s:\n",
emacs_execdir);
error ("%s", dynlib_error ());
}
load_comp_unit (comp_u, true, false);
break;
}