diff options
| author | Paul Eggert | 2019-09-11 23:45:32 -0700 |
|---|---|---|
| committer | Paul Eggert | 2019-09-11 23:46:58 -0700 |
| commit | ffa870fc806451b9bd4504bebbf9085f4b4c0be8 (patch) | |
| tree | a88d8b0fcf770ee94909c7126e688919ef2f1b78 /src/doc.c | |
| parent | f7228a6479cc8c88a23138980d958c4c431dd6a5 (diff) | |
| download | emacs-ffa870fc806451b9bd4504bebbf9085f4b4c0be8.tar.gz emacs-ffa870fc806451b9bd4504bebbf9085f4b4c0be8.zip | |
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.
Diffstat (limited to 'src/doc.c')
| -rw-r--r-- | src/doc.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -136,7 +136,7 @@ get_doc_string (Lisp_Object filepos, bool unibyte, bool definition) | |||
| 136 | } | 136 | } |
| 137 | if (fd < 0) | 137 | if (fd < 0) |
| 138 | { | 138 | { |
| 139 | if (errno == EMFILE || errno == ENFILE) | 139 | if (errno != ENOENT && errno != ENOTDIR) |
| 140 | report_file_error ("Read error on documentation file", file); | 140 | report_file_error ("Read error on documentation file", file); |
| 141 | 141 | ||
| 142 | SAFE_FREE (); | 142 | SAFE_FREE (); |