Navigation Menu

Skip to content

Commit

Permalink
mrb: add temporary error handling on init
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 4, 2015
1 parent 2f13bd9 commit 83e0b5b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ctx_impl_mrb.c
Expand Up @@ -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);
}
}
}

Expand Down

0 comments on commit 83e0b5b

Please sign in to comment.