fix mruby command returning EXIT_SUCCESS when program file can't be

opened.
This commit is contained in:
Tatsuya Matsumoto
2014-03-05 16:51:57 +09:00
parent d03c72ad53
commit 43944a0d3a
+1 -1
View File
@@ -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];