aboutsummaryrefslogtreecommitdiffstats
path: root/src/callproc.c
diff options
context:
space:
mode:
authorPaul Eggert2019-09-15 20:12:07 -0700
committerPaul Eggert2019-09-15 20:12:33 -0700
commitde3daf063987dfc2a28cd5071b8f77446c7312e0 (patch)
treead18673c8970bb88d0327c8947cb88c50258bc9b /src/callproc.c
parenta625ca5c2675a41c5c0d277def6b8cb4f4c4d6db (diff)
downloademacs-de3daf063987dfc2a28cd5071b8f77446c7312e0.tar.gz
emacs-de3daf063987dfc2a28cd5071b8f77446c7312e0.zip
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.c2
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)
1598 Lisp_Object path_game = build_unibyte_string (PATH_GAME); 1598 Lisp_Object path_game = build_unibyte_string (PATH_GAME);
1599 if (file_accessible_directory_p (path_game)) 1599 if (file_accessible_directory_p (path_game))
1600 gamedir = path_game; 1600 gamedir = path_game;
1601 else if (errno != ENOENT && errno != ENOTDIR)
1602 dir_warning ("game dir", path_game);
1601 } 1603 }
1602 Vshared_game_score_directory = gamedir; 1604 Vshared_game_score_directory = gamedir;
1603} 1605}