[Groonga-commit] groonga/groonga at 9fe9705 [master] select: add tag to error log

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Sat May 21 18:43:12 JST 2016


Kouhei Sutou	2016-05-21 18:43:12 +0900 (Sat, 21 May 2016)

  New Revision: 9fe9705024f7e392b12cab911999ce53395af0df
  https://github.com/groonga/groonga/commit/9fe9705024f7e392b12cab911999ce53395af0df

  Message:
    select: add tag to error log

  Modified files:
    lib/proc/proc_select.c
    test/command/suite/select/adjuster/invalid/missing_plus.expected

  Modified: lib/proc/proc_select.c (+5 -0)
===================================================================
--- lib/proc/proc_select.c    2016-05-21 18:41:28 +0900 (5880efd)
+++ lib/proc/proc_select.c    2016-05-21 18:43:12 +0900 (79fa00c)
@@ -1280,6 +1280,11 @@ grn_select_apply_adjuster(grn_ctx *ctx,
                       GRN_EXPR_SYNTAX_ADJUSTER);
   if (rc != GRN_SUCCESS) {
     grn_obj_unlink(ctx, adjuster);
+    GRN_PLUGIN_ERROR(ctx,
+                     rc,
+                     "[select][adjuster] "
+                     "failed to parse: %s",
+                     ctx->errbuf);
     return GRN_FALSE;
   }
 

  Modified: test/command/suite/select/adjuster/invalid/missing_plus.expected (+2 -1)
===================================================================
--- test/command/suite/select/adjuster/invalid/missing_plus.expected    2016-05-21 18:41:28 +0900 (ca9c397)
+++ test/command/suite/select/adjuster/invalid/missing_plus.expected    2016-05-21 18:43:12 +0900 (c21ef79)
@@ -37,7 +37,8 @@ select Memos   --filter true   --adjuster 'tags @ "groonga" * 4 tags @ "mroonga"
       0.0,
       0.0
     ],
-    "Syntax error: <tags @ \"groonga\" * 4 |t|ags @ \"mroonga\" * 3>"
+    "[select][adjuster] failed to parse: Syntax error: <tags @ \"groonga\" * 4 |t|ags @ \"mroonga\" * 3>"
   ]
 ]
 #|e| Syntax error: <tags @ "groonga" * 4 |t|ags @ "mroonga" * 3>
+#|e| [select][adjuster] failed to parse: Syntax error: <tags @ "groonga" * 4 |t|ags @ "mroonga" * 3>
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る