[Groonga-commit] groonga/groonga at 83e0b5b [master] mrb: add temporary error handling on init

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Jan 5 00:52:32 JST 2015


Kouhei Sutou	2015-01-05 00:52:32 +0900 (Mon, 05 Jan 2015)

  New Revision: 83e0b5b268963006fe5122fdac0fe6da937d8de7
  https://github.com/groonga/groonga/commit/83e0b5b268963006fe5122fdac0fe6da937d8de7

  Message:
    mrb: add temporary error handling on init

  Modified files:
    lib/ctx_impl_mrb.c

  Modified: lib/ctx_impl_mrb.c (+4 -0)
===================================================================
--- lib/ctx_impl_mrb.c    2015-01-05 00:51:20 +0900 (80d1bdd)
+++ lib/ctx_impl_mrb.c    2015-01-05 00:52:32 +0900 (1c2cf39)
@@ -143,6 +143,10 @@ grn_ctx_impl_mrb_init(grn_ctx *ctx)
     ctx->impl->mrb.state = mrb_open();
     ctx->impl->mrb.base_directory[0] = '\0';
     grn_ctx_impl_mrb_init_bindings(ctx);
+    /* TODO: Implement better error handling on init. */
+    if (ctx->impl->mrb.state->exc) {
+      mrb_print_error(ctx->impl->mrb.state);
+    }
   }
 }
 
-------------- next part --------------
HTML����������������������������...
Download 



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