Commit 1c4d58b8 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #1807 from tmash06/fix_exit_status_code

fix mruby command returning EXIT_SUCCESS when program file can't be opened.
parents 3120eb3e 43944a0d
......@@ -142,7 +142,7 @@ append_cmdline:
args->rfp = fopen(argv[0], args->mrbfile ? "rb" : "r");
if (args->rfp == NULL) {
printf("%s: Cannot open program file. (%s)\n", *origargv, *argv);
return 0;
return EXIT_FAILURE;
}
args->fname = TRUE;
args->cmdline = argv[0];
......
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