diff options
| author | Eli Zaretskii | 2021-04-24 11:20:50 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2021-04-24 11:20:50 +0300 |
| commit | 592ffd35b0de48f098fcf070d0a29bb3406e4bf9 (patch) | |
| tree | c31a06b0b115ef2e2cee10a01686311f2f1fa938 | |
| parent | 062e5994802bbe634bae7f1aef99f65daf1ec44e (diff) | |
| download | emacs-592ffd35b0de48f098fcf070d0a29bb3406e4bf9.tar.gz emacs-592ffd35b0de48f098fcf070d0a29bb3406e4bf9.zip | |
Improve diagnostics of loading *.eln files
* src/pdumper.c (dump_do_dump_relocation): Improve diagnostics
when loading preloaded *.eln files fails. (Bug#46790)
| -rw-r--r-- | src/pdumper.c | 6 |
1 files changed, 5 insertions, 1 deletions
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, | |||
| 5335 | comp_u->file = eln_fname; | 5335 | comp_u->file = eln_fname; |
| 5336 | comp_u->handle = dynlib_open (SSDATA (eln_fname)); | 5336 | comp_u->handle = dynlib_open (SSDATA (eln_fname)); |
| 5337 | if (!comp_u->handle) | 5337 | if (!comp_u->handle) |
| 5338 | error ("%s", dynlib_error ()); | 5338 | { |
| 5339 | fprintf (stderr, "Error using execdir %s:\n", | ||
| 5340 | emacs_execdir); | ||
| 5341 | error ("%s", dynlib_error ()); | ||
| 5342 | } | ||
| 5339 | load_comp_unit (comp_u, true, false); | 5343 | load_comp_unit (comp_u, true, false); |
| 5340 | break; | 5344 | break; |
| 5341 | } | 5345 | } |