Skip to content

Commit 9b01fa0

Browse files
committed
Fail clearly when spawn-helper is missing
1 parent 94cf370 commit 9b01fa0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/ruby/truffleruby/core/truffle/process_operations.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,7 @@ def posix_spawnp(command, args, env_array, options)
570570
if use_helper
571571
# Go through spawn-helper to change the working dir and then execve()
572572
spawn_helper = "#{Truffle::Boot.ruby_home}/lib/truffle/spawn-helper"
573+
raise "#{spawn_helper} does not exist!" unless File.exist?(spawn_helper)
573574
cwd = chdir || Dir.pwd
574575
args = [spawn_helper, cwd, command, *args]
575576
command = spawn_helper

0 commit comments

Comments
 (0)