mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
fix mruby command returning EXIT_SUCCESS when program file can't be
opened.
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user