Commit 6c2ee11d authored by Eli Zaretskii's avatar Eli Zaretskii

Improve pdump load diagnostics

* src/emacs.c (load_pdump): Improve diagnostics when pdump
file fails to load correctly.
parent 4eb78a47
Pipeline #629 passed with stage
in 50 minutes and 38 seconds
......@@ -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)
{
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment