From: Paul Eggert Date: Thu, 12 Sep 2019 06:45:32 +0000 (-0700) Subject: Improve error reporting for DOC file problems X-Git-Tag: emacs-27.0.90~1551^2~94 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ffa870fc806451b9bd4504bebbf9085f4b4c0be8;p=emacs.git 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. --- diff --git a/src/doc.c b/src/doc.c index 247be79adaf..b06b87c6114 100644 --- a/src/doc.c +++ b/src/doc.c @@ -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); SAFE_FREE ();