Commit ffa870fc authored by Paul Eggert's avatar Paul Eggert

Improve error reporting for DOC file problems

* src/doc.c (get_doc_string): Report all serious errors
when DOC cannot be opened, not just fd-exhaustion errors.
parent f7228a64
Pipeline #3104 passed with stage
in 57 minutes and 44 seconds
......@@ -136,7 +136,7 @@ get_doc_string (Lisp_Object filepos, bool unibyte, bool definition)
if (fd < 0)
if (errno == EMFILE || errno == ENFILE)
if (errno != ENOENT && errno != ENOTDIR)
report_file_error ("Read error on documentation file", file);
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