summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authorKevin Newton <[email protected]>2024-04-25 13:32:08 -0400
committerKevin Newton <[email protected]>2024-04-25 14:59:48 -0400
commitaf24ba40344cdd83865c7c580756352be526794a (patch)
treecd401056c73249aed5a77003dee796682711d989 /ruby.c
parent6f4f360fc46269eaba753cafe557519677a45a11 (diff)
[PRISM] Raise LoadError when file cannot be read
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index e939320f1f..d86549066d 100644
--- a/ruby.c
+++ b/ruby.c
@@ -2157,7 +2157,7 @@ prism_script(ruby_cmdline_options_t *opt, pm_parse_result_t *result)
}
else {
pm_options_command_line_set(options, command_line);
- error = pm_load_file(result, opt->script_name);
+ error = pm_load_file(result, opt->script_name, true);
// If reading the file did not error, at that point we load the command
// line options. We do it in this order so that if the main script fails