mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Print error instead of printing return value of report.
This commit is contained in:
+1
-1
@@ -48,7 +48,7 @@ eval_test(mrb_state *mrb)
|
||||
return_value = mrb_load_string(mrb, prog);
|
||||
/* did an exception occur? */
|
||||
if (mrb->exc) {
|
||||
mrb_p(mrb, return_value);
|
||||
mrb_print_error(mrb);
|
||||
mrb->exc = 0;
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user