diff options
| author | Eli Zaretskii | 2019-01-27 17:55:27 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2019-01-27 17:55:27 +0200 |
| commit | 6c2ee11d8f27cc39f852b69a49056ba76ac6bee9 (patch) | |
| tree | e3979b5b6b5d097276b1cbdd954895d95819a5ca /src | |
| parent | 4eb78a47e0be59c6d7b886cfe82ce56b276a52bd (diff) | |
| download | emacs-6c2ee11d8f27cc39f852b69a49056ba76ac6bee9.tar.gz emacs-6c2ee11d8f27cc39f852b69a49056ba76ac6bee9.zip | |
Improve pdump load diagnostics
* src/emacs.c (load_pdump): Improve diagnostics when pdump
file fails to load correctly.
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/emacs.c b/src/emacs.c index aed4e0d1508..2acee8e6fea 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -813,12 +813,14 @@ load_pdump (int argc, char **argv) | |||
| 813 | path_exec, DIRECTORY_SEP, argv0_base, suffix); | 813 | path_exec, DIRECTORY_SEP, argv0_base, suffix); |
| 814 | result = pdumper_load (dump_file); | 814 | result = pdumper_load (dump_file); |
| 815 | } | 815 | } |
| 816 | else | ||
| 817 | fatal ("could not load dump file \"%s\": %s", | ||
| 818 | dump_file, dump_error_to_string (result)); | ||
| 819 | 816 | ||
| 820 | if (result != PDUMPER_LOAD_SUCCESS) | 817 | if (result != PDUMPER_LOAD_SUCCESS) |
| 821 | dump_file = NULL; | 818 | { |
| 819 | if (result != PDUMPER_LOAD_FILE_NOT_FOUND) | ||
| 820 | fatal ("could not load dump file \"%s\": %s", | ||
| 821 | dump_file, dump_error_to_string (result)); | ||
| 822 | dump_file = NULL; | ||
| 823 | } | ||
| 822 | 824 | ||
| 823 | out: | 825 | out: |
| 824 | return result; | 826 | return result; |