raise Rscons::BuildError on a build failure
This commit is contained in:
parent
052b1afe19
commit
289d27d41d
@ -17,4 +17,7 @@ module Rscons
|
||||
Object,
|
||||
Program,
|
||||
]
|
||||
|
||||
class BuildError < Exception
|
||||
end
|
||||
end
|
||||
|
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
module Rscons
|
||||
# gem version
|
||||
VERSION = "0.0.3"
|
||||
VERSION = "0.0.4"
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user