Print error instead of printing return value of report.

This commit is contained in:
take_cheeze
2014-07-08 22:24:35 +09:00
parent 5c50bcd20a
commit 5bb0a1fb5e
+1 -1
View File
@@ -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;
}