Skip to content
Browse files

Fail loudly when a gem can't be vendored

  • Loading branch information...
1 parent a6ab27f commit 33eebc4bf224986ae0c10140053fb58fe1ba7fa5 @jferris jferris committed Feb 18, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 Rakefile
View
5 Rakefile
@@ -170,8 +170,9 @@ task :vendor_test_gems do
unless existing
command = "gem install -i #{LOCAL_GEM_ROOT} --no-ri --no-rdoc #{version_option} #{gem_name}"
puts "Vendoring #{gem_file_pattern}..."
- unless system(command)
- $stderr.puts "Command failed: #{command}"
+ unless system("#{command} 2>&1")
+ puts "Command failed: #{command}"
+ exit(1)
end
end
end

0 comments on commit 33eebc4

Please sign in to comment.
Something went wrong with that request. Please try again.