raise Rscons::BuildError on a build failure

This commit is contained in:
josh committed 2013-08-12 13:13:22 -04:00
1 parent 052b1afe19
commit 289d27d41d
3 files changed
+5 -3

No files matched your search

+1 -2
View File
@@ -149,8 +149,7 @@ module Rscons
@targets.each do |target, info|
next if targets_processed.include?(target)
unless process_target.call(target)
$stderr.puts "Error: failed to build #{target}"
break
raise BuildError.new("Failed to build #{target}")
end
end
cache.write