mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Use mrb_print_error to print exception instead of mrb_p.
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user