summaryrefslogtreecommitdiff
path: root/ruby-runner.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-17 01:00:05 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-17 01:00:05 +0000
commit25510c1c2c02e5df2f1aabebbb0c7bc6d6f01111 (patch)
treeffef5863de92dcf38b0715390eb02d3e06b9528f /ruby-runner.c
parent71120953d75abb6b7203850799b869347b805b82 (diff)
ruby-runner.c: show the failed path
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby-runner.c')
-rw-r--r--ruby-runner.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ruby-runner.c b/ruby-runner.c
index 99be4a0013..3d59ebb760 100644
--- a/ruby-runner.c
+++ b/ruby-runner.c
@@ -1,4 +1,5 @@
#define _POSIX_C_SOURCE 200809L
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
@@ -73,5 +74,6 @@ main(int argc, char **argv)
memcpy(p, rubyname, namesize);
execv(rubypath, argv);
+ perror(rubypath);
return -1;
}