[Groonga-commit] groonga/groonga [master] fix error code and improve error message.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 3月 28日 (月) 00:00:37 JST


Kouhei Sutou	2011-03-27 15:00:37 +0000 (Sun, 27 Mar 2011)

  New Revision: 26f2430eb6b19673e2df17f2bc001af903f1bb22

  Log:
    fix error code and improve error message.

  Modified files:
    lib/db.c

  Modified: lib/db.c (+2 -1)
===================================================================
--- lib/db.c    2011-03-27 14:54:23 +0000 (acf137b)
+++ lib/db.c    2011-03-27 15:00:37 +0000 (9b044dc)
@@ -7679,7 +7679,8 @@ bracket_close(grn_ctx *ctx, grn_loader *loader)
               col = grn_obj_column(ctx, loader->table,
                                    column_name, column_name_size);
               if (!col) {
-                ERR(GRN_ERROR, "couldn't get column: %.*s",
+                ERR(GRN_INVALID_ARGUMENT,
+                    "nonexistent column: <%.*s>",
                     column_name_size, column_name);
                 return;
               }




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