diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2019-09-15 20:12:07 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2019-09-15 20:12:33 -0700 |
commit | de3daf063987dfc2a28cd5071b8f77446c7312e0 (patch) | |
tree | ad18673c8970bb88d0327c8947cb88c50258bc9b /src/callproc.c | |
parent | a625ca5c2675a41c5c0d277def6b8cb4f4c4d6db (diff) | |
download | emacs-de3daf063987dfc2a28cd5071b8f77446c7312e0.tar.gz |
Improve directory-access diagnostics
* src/callproc.c (init_callproc): Diagnose I/O errors,
access errors, etc. for the game directory.
* src/charset.c (init_charset): Improve quality of diagnostic
when the charsets directory has I/O errors, access errors, etc.
Diffstat (limited to 'src/callproc.c')
-rw-r--r-- | src/callproc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/callproc.c b/src/callproc.c index 4473b19a297..20e0bc50dab 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -1598,6 +1598,8 @@ init_callproc (void) Lisp_Object path_game = build_unibyte_string (PATH_GAME); if (file_accessible_directory_p (path_game)) gamedir = path_game; + else if (errno != ENOENT && errno != ENOTDIR) + dir_warning ("game dir", path_game); } Vshared_game_score_directory = gamedir; } |