Commit c812c5c8 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #519 from iij/pr-mruby-exit-status-with-mrb

fix mruby exit status with mrb file.
parents 8cf42709 38fb8b07
......@@ -196,8 +196,10 @@ main(int argc, char **argv)
}
else if (!args.check_syntax) {
mrb_run(mrb, mrb_proc_new(mrb, mrb->irep[n]), mrb_top_self(mrb));
n = 0;
if (mrb->exc) {
p(mrb, mrb_obj_value(mrb->exc));
n = -1;
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment