Use mrb_print_error to print exception instead of mrb_p.

This commit is contained in:
take_cheeze
2014-07-08 22:25:32 +09:00
parent 5bb0a1fb5e
commit ab779b7ad8
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ mrb_init_mrbtest(mrb_state *mrb)
mrbgemtest_init(mrb);
#endif
if (mrb->exc) {
mrb_p(mrb, mrb_obj_value(mrb->exc));
mrb_print_error(mrb);
exit(EXIT_FAILURE);
}
}