[Groonga-commit] groonga/groonga [master] show key size on long key error.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 1月 5日 (水) 12:35:15 JST


Kouhei Sutou	2011-01-05 03:35:15 +0000 (Wed, 05 Jan 2011)

  New Revision: b708dd7dc9590690608ffe9d88eacfe813d2ee1f

  Log:
    show key size on long key error.

  Modified files:
    lib/pat.c

  Modified: lib/pat.c (+1 -1)
===================================================================
--- lib/pat.c    2011-01-05 02:58:18 +0000 (6a8c611)
+++ lib/pat.c    2011-01-05 03:35:15 +0000 (1e2495a)
@@ -748,7 +748,7 @@ grn_pat_add(grn_ctx *ctx, grn_pat *pat, const void *key, uint32_t key_size,
   uint8_t keybuf[MAX_FIXED_KEY_SIZE];
   if (!key || !key_size) { return GRN_ID_NIL; }
   if (key_size > GRN_TABLE_MAX_KEY_SIZE) {
-    ERR(GRN_INVALID_ARGUMENT, "too long key");
+    ERR(GRN_INVALID_ARGUMENT, "too long key: (%u)", key_size);
     return GRN_ID_NIL;
   }
   KEY_ENCODE(pat, keybuf, key, key_size);




Groonga-commit メーリングリストの案内
Back to archive index