[Groonga-commit] groonga/groonga [master] Fix wrong error code

Back to archive index

null+****@clear***** null+****@clear*****
Fri Aug 10 18:08:01 JST 2012


Kouhei Sutou	2012-08-10 18:08:01 +0900 (Fri, 10 Aug 2012)

  New Revision: 807704445fe8b7a4580f54aa00b57f85debf969b
  https://github.com/groonga/groonga/commit/807704445fe8b7a4580f54aa00b57f85debf969b

  Log:
    Fix wrong error code

  Modified files:
    lib/db.c

  Modified: lib/db.c (+1 -1)
===================================================================
--- lib/db.c    2012-08-10 17:57:38 +0900 (1550bd8)
+++ lib/db.c    2012-08-10 18:08:01 +0900 (9ab237d)
@@ -8665,7 +8665,7 @@ set_vector(grn_ctx *ctx, grn_obj *column, grn_id id, grn_obj *vector)
           }
           if (element == &casted_element) { GRN_OBJ_FIN(ctx, element); }
         } else {
-          ERR(GRN_ERROR, "bad syntax.");
+          ERR(GRN_INVALID_ARGUMENT, "bad syntax.");
         }
         v = values_next(ctx, v);
       }
-------------- next part --------------
HTML����������������������������...
Download 



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