emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master ffa870f: Improve error reporting for DOC file probl


From: Paul Eggert
Subject: [Emacs-diffs] master ffa870f: Improve error reporting for DOC file problems
Date: Thu, 12 Sep 2019 02:47:02 -0400 (EDT)

branch: master
commit ffa870fc806451b9bd4504bebbf9085f4b4c0be8
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    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.
---
 src/doc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/doc.c b/src/doc.c
index 247be79..b06b87c 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 ();



reply via email to

[Prev in Thread] Current Thread [Next in Thread]