[Groonga-commit] groonga/groonga at 7a2cf78 [master] mrb: add debug print for Travis

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Feb 9 22:27:19 JST 2015


Kouhei Sutou	2015-02-09 22:27:19 +0900 (Mon, 09 Feb 2015)

  New Revision: 7a2cf78b763a65c03966284378786214064ad7e1
  https://github.com/groonga/groonga/commit/7a2cf78b763a65c03966284378786214064ad7e1

  Message:
    mrb: add debug print for Travis
    
    It'll be removed soon.

  Modified files:
    lib/mrb/mrb_command_input.c

  Modified: lib/mrb/mrb_command_input.c (+6 -0)
===================================================================
--- lib/mrb/mrb_command_input.c    2015-02-09 22:21:43 +0900 (f392023)
+++ lib/mrb/mrb_command_input.c    2015-02-09 22:27:19 +0900 (d47747f)
@@ -90,10 +90,16 @@ mrb_grn_command_input_array_reference(mrb_state *mrb, mrb_value self)
   }
 
   if (!argument) {
+    mrb_raisef(mrb, E_ARGUMENT_ERROR,
+               "grn_command_input_get(%S) is NULL",
+               mrb_key_or_offset);
     return mrb_nil_value();
   }
 
   if (GRN_TEXT_LEN(argument) == 0) {
+    mrb_raisef(mrb, E_ARGUMENT_ERROR,
+               "grn_command_input_get(%S) is empty",
+               mrb_key_or_offset);
     return mrb_nil_value();
   }
 
-------------- next part --------------
HTML����������������������������...
Download 



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