Compare commits

...
2 Commits
Author SHA1 Message Date
josh 711e96cec8 write out cache file when raising a build error exception 2013-08-12 14:40:46 -04:00
josh 289d27d41d raise Rscons::BuildError on a build failure 2013-08-12 13:13:22 -04:00
3 changed files with 6 additions and 3 deletions

No files matched your search

+3
View File
@@ -17,4 +17,7 @@ module Rscons
Object,
Program,
]
class BuildError < Exception
end
end
+2 -2
View File
@@ -149,8 +149,8 @@ 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
cache.write
raise BuildError.new("Failed to build #{target}")
end
end
cache.write
+1 -1
View File
@@ -1,4 +1,4 @@
module Rscons
# gem version
VERSION = "0.0.3"
VERSION = "0.0.5"
end