Improve pdump load diagnostics
* src/emacs.c (load_pdump): Improve diagnostics when pdump file fails to load correctly.
This commit is contained in:
parent
4eb78a47e0
commit
6c2ee11d8f
1 changed files with 6 additions and 4 deletions
10
src/emacs.c
10
src/emacs.c
|
@ -813,12 +813,14 @@ load_pdump (int argc, char **argv)
|
|||
path_exec, DIRECTORY_SEP, argv0_base, suffix);
|
||||
result = pdumper_load (dump_file);
|
||||
}
|
||||
else
|
||||
fatal ("could not load dump file \"%s\": %s",
|
||||
dump_file, dump_error_to_string (result));
|
||||
|
||||
if (result != PDUMPER_LOAD_SUCCESS)
|
||||
dump_file = NULL;
|
||||
{
|
||||
if (result != PDUMPER_LOAD_FILE_NOT_FOUND)
|
||||
fatal ("could not load dump file \"%s\": %s",
|
||||
dump_file, dump_error_to_string (result));
|
||||
dump_file = NULL;
|
||||
}
|
||||
|
||||
out:
|
||||
return result;
|
||||
|
|
Loading…
Add table
Reference in a new issue