From 711e96cec830223ccec8c6e59b71e777da93f573 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Mon, 12 Aug 2013 14:40:46 -0400 Subject: [PATCH] write out cache file when raising a build error exception --- lib/rscons/environment.rb | 1 + lib/rscons/version.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rscons/environment.rb b/lib/rscons/environment.rb index 22fadaf..2c714c2 100644 --- a/lib/rscons/environment.rb +++ b/lib/rscons/environment.rb @@ -149,6 +149,7 @@ module Rscons @targets.each do |target, info| next if targets_processed.include?(target) unless process_target.call(target) + cache.write raise BuildError.new("Failed to build #{target}") end end diff --git a/lib/rscons/version.rb b/lib/rscons/version.rb index a77bb97..ddbf890 100644 --- a/lib/rscons/version.rb +++ b/lib/rscons/version.rb @@ -1,4 +1,4 @@ module Rscons # gem version - VERSION = "0.0.4" + VERSION = "0.0.5" end