changeset 102636:b9092d75665a

(load_charset_map_from_file): When a mapfile can't be loaded, signal an error.
author Kenichi Handa <handa@m17n.org>
date Thu, 19 Mar 2009 00:46:26 +0000
parents b4d3393d6962
children 7780afc47c49
files src/charset.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/charset.c	Wed Mar 18 21:47:23 2009 +0000
+++ b/src/charset.c	Thu Mar 19 00:46:26 2009 +0000
@@ -522,10 +522,7 @@
   unbind_to (count, Qnil);
   if (fd < 0
       || ! (fp = fdopen (fd, "r")))
-    {
-      add_to_log ("Failure in loading charset map: %S", mapfile, Qnil);
-      return;
-    }
+    error ("Failure in loading charset map: %S", SDATA (mapfile));
 
   head = entries = ((struct charset_map_entries *)
 		    alloca (sizeof (struct charset_map_entries)));