From: Eli Zaretskii Date: Sat, 24 Apr 2021 08:20:50 +0000 (+0300) Subject: Improve diagnostics of loading *.eln files X-Git-Tag: emacs-28.0.90~2727^2~1 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=592ffd35b0de48f098fcf070d0a29bb3406e4bf9;p=emacs.git Improve diagnostics of loading *.eln files * src/pdumper.c (dump_do_dump_relocation): Improve diagnostics when loading preloaded *.eln files fails. (Bug#46790) --- diff --git a/src/pdumper.c b/src/pdumper.c index ed763a5d7ef..dfc7388b634 100644 --- a/src/pdumper.c +++ b/src/pdumper.c @@ -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; }