Navigation Menu

Skip to content

Commit

Permalink
mecab: show error message from MeCab on mecab_new2() failure
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Aug 8, 2012
1 parent 53c72c5 commit 5627c2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/tokenizers/mecab.c
Expand Up @@ -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
}
Expand Down

0 comments on commit 5627c2c

Please sign in to comment.