[Groonga-commit] groonga/groonga at 6863683 [master] table_tokenize: add a missing error

Back to archive index

Susumu Yata null+****@clear*****
Fri Jul 7 16:30:40 JST 2017


Susumu Yata	2017-07-07 16:30:40 +0900 (Fri, 07 Jul 2017)

  New Revision: 68636833c313b78a271ae4295f3808e5c225846b
  https://github.com/groonga/groonga/commit/68636833c313b78a271ae4295f3808e5c225846b

  Merged b36db1c: Merge pull request #731 from groonga/table_tokenize-add-missing-error

  Message:
    table_tokenize: add a missing error

  Modified files:
    lib/proc/proc_tokenize.c

  Modified: lib/proc/proc_tokenize.c (+4 -1)
===================================================================
--- lib/proc/proc_tokenize.c    2017-07-07 15:01:13 +0900 (1685908)
+++ lib/proc/proc_tokenize.c    2017-07-07 16:30:40 +0900 (cf65b13)
@@ -264,8 +264,11 @@ command_table_tokenize(grn_ctx *ctx, int nargs, grn_obj **args, grn_user_data *u
     }
 
     lexicon = grn_ctx_get(ctx, GRN_TEXT_VALUE(table_name), GRN_TEXT_LEN(table_name));
-
     if (!lexicon) {
+      GRN_PLUGIN_ERROR(ctx, GRN_INVALID_ARGUMENT,
+                       "[table_tokenize] nonexistent lexicon: <%.*s>",
+                       (int)GRN_TEXT_LEN(table_name),
+                       GRN_TEXT_VALUE(table_name));
       return NULL;
     }
 
-------------- next part --------------
HTML����������������������������...
下载 



More information about the Groonga-commit mailing list
Back to archive index