aboutsummaryrefslogtreecommitdiffstats
path: root/process.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-07 15:14:46 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-07 15:14:46 +0000
commit426c87b1e49fd57a394e73f1a0f50738cf005023 (patch)
tree8c866536be682808f07d56745bd2c355bc42d0c7 /process.c
parent7efecf9f718b5cc677d7f582e575e64013ddc405 (diff)
downloadruby-426c87b1e49fd57a394e73f1a0f50738cf005023.tar.gz
process.c: open exception message
* process.c (rb_execarg_parent_start1): raise with the target path name when open() failed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/process.c b/process.c
index 9849b2ec1e..8081ce86f1 100644
--- a/process.c
+++ b/process.c
@@ -2334,7 +2334,7 @@ rb_execarg_parent_start1(VALUE execarg_obj)
rb_thread_check_ints();
goto again;
}
- rb_sys_fail("open");
+ rb_syserr_fail_str(open_data.err, vpath);
}
fd2 = open_data.ret;
rb_update_max_fd(fd2);