summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-01-04 07:42:21 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-01-04 07:42:21 +0900
commitbb5c451dd4c5ad30ad62d2cd6487658576097cb1 (patch)
treee26f8d66d9fcb790e6d0fe8f5ddefe7f63e3e116
parent7c9d9b1c8905e8246e8ad70b712abb3a420db1df (diff)
downloadmruby-bb5c451dd4c5ad30ad62d2cd6487658576097cb1.tar.gz
mruby-bb5c451dd4c5ad30ad62d2cd6487658576097cb1.zip
Fix `mirb` not to be terminated by `codegen error`.
-rw-r--r--mrbgems/mruby-bin-mirb/tools/mirb/mirb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c
index be73c2e86..b626024d1 100644
--- a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c
+++ b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c
@@ -650,9 +650,8 @@ main(int argc, char **argv)
/* generate bytecode */
struct RProc *proc = mrb_generate_code(mrb, parser);
if (proc == NULL) {
- fputs("codegen error\n", stderr);
mrb_parser_free(parser);
- break;
+ continue;
}
if (args.verbose) {