[Groonga-commit] groonga/groonga [master] mecab: show error message from MeCab on mecab_new2() failure

Zurück zum Archiv-Index

null+****@clear***** null+****@clear*****
2012年 8月 8日 (水) 16:16:15 JST


Kouhei Sutou	2012-08-08 16:16:15 +0900 (Wed, 08 Aug 2012)

  New Revision: 5627c2c5c3720ea0cd6f012b7c800db8edb33bdf
  https://github.com/groonga/groonga/commit/5627c2c5c3720ea0cd6f012b7c800db8edb33bdf

  Log:
    mecab: show error message from MeCab on mecab_new2() failure

  Modified files:
    plugins/tokenizers/mecab.c

  Modified: plugins/tokenizers/mecab.c (+2 -1)
===================================================================
--- plugins/tokenizers/mecab.c    2012-08-08 15:25:06 +0900 (35fd5c7)
+++ plugins/tokenizers/mecab.c    2012-08-08 16:16:15 +0900 (d8571ee)
@@ -226,7 +226,8 @@ check_mecab_dictionary_encoding(grn_ctx *ctx)
     }
   } else {
     ERR(GRN_TOKENIZER_ERROR,
-        "mecab_new2 failed in check_mecab_dictionary_encoding");
+        "mecab_new2 failed in check_mecab_dictionary_encoding: %s",
+        mecab_strerror(NULL));
   }
 #endif
 }
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



Groonga-commit メーリングリストの案内
Zurück zum Archiv-Index