From 4df4f19e2abdcc118c6d205c91dd3ef3ebeabb05 Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Fri, 3 Jul 2015 15:20:09 -0500 Subject: [PATCH] add check to see which python script is failing --- ext/libv8/builder.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ext/libv8/builder.rb b/ext/libv8/builder.rb index 60eeb3e..14d0387 100644 --- a/ext/libv8/builder.rb +++ b/ext/libv8/builder.rb @@ -99,10 +99,12 @@ module Libv8 fetch = File.expand_path('../../../vendor/depot_tools/fetch', __FILE__) gclient = File.expand_path('../../../vendor/depot_tools/gclient', __FILE__) Dir.chdir(File.expand_path('../../../vendor', __FILE__)) do - `#{fetch} v8` + system "#{fetch} v8" or fail "unable to fetch v8 source" Dir.chdir('v8') do - `git checkout #{source_version}` - `#{gclient} sync` + unless system "git checkout #{source_version}" + fail "unable to checkout source for v8 #{source_version}" + end + system "#{gclient} sync" or fail "could not sync v8 build dependencies" end end end