[Groonga-commit] groonga/groonga at 5ea0e06 [master] mruby: show unhandled exception

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Aug 10 00:35:17 JST 2014


Kouhei Sutou	2014-08-10 00:35:17 +0900 (Sun, 10 Aug 2014)

  New Revision: 5ea0e06e541fc658ccac295f818500db630f1ffa
  https://github.com/groonga/groonga/commit/5ea0e06e541fc658ccac295f818500db630f1ffa

  Message:
    mruby: show unhandled exception

  Modified files:
    lib/mrb/mrb_expr.c

  Modified: lib/mrb/mrb_expr.c (+6 -0)
===================================================================
--- lib/mrb/mrb_expr.c    2014-08-10 00:23:18 +0900 (f3e582b)
+++ lib/mrb/mrb_expr.c    2014-08-10 00:35:17 +0900 (8740339)
@@ -403,6 +403,12 @@ grn_mrb_scan_info_build(grn_ctx *ctx, grn_obj *expr, int *n,
     goto exit;
   }
 
+  if (mrb_type(mrb_sis) == MRB_TT_EXCEPTION) {
+    mrb->exc = mrb_obj_ptr(mrb_sis);
+    mrb_print_error(mrb);
+    goto exit;
+  }
+
   *n = RARRAY_LEN(mrb_sis);
   sis = GRN_MALLOCN(scan_info *, *n);
   for (i = 0; i < *n; i++) {
-------------- next part --------------
HTML����������������������������...
Télécharger 



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