summaryrefslogtreecommitdiff
path: root/src/charset.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/charset.c')
-rw-r--r--src/charset.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/charset.c b/src/charset.c
index 8c54381dc48..93206aa29b0 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -2292,14 +2292,18 @@ init_charset (void)
{
/* This used to be non-fatal (dir_warning), but it should not
happen, and if it does sooner or later it will cause some
- obscure problem (eg bug#6401), so better abort. */
- fprintf (stderr, "Error: charsets directory not found:\n\
-%s\n\
-Emacs will not function correctly without the character map files.\n%s\
-Please check your installation!\n",
- SDATA (tempdir),
- egetenv("EMACSDATA") ? "The EMACSDATA environment \
-variable is set, maybe it has the wrong value?\n" : "");
+ obscure problem (eg bug#6401), so better exit. */
+ fprintf (stderr,
+ ("Error: %s: %s\n"
+ "Emacs will not function correctly "
+ "without the character map files.\n"
+ "%s"
+ "Please check your installation!\n"),
+ SDATA (tempdir), strerror (errno),
+ (egetenv ("EMACSDATA")
+ ? ("The EMACSDATA environment variable is set. "
+ "Maybe it has the wrong value?\n")
+ : ""));
exit (1);
}