From a2aacce2441b677dce9a9c218fb7fa1aefe9baf9 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Fri, 26 Apr 2013 15:24:33 -0400 Subject: [PATCH] Fail hard if one of the asset compilation steps fails --- rakefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rakefile b/rakefile index fb9fcd833b..cd1349373d 100644 --- a/rakefile +++ b/rakefile @@ -142,6 +142,9 @@ def compile_assets(watch=false, debug=false) puts "Waiting for `#{cmd}` to complete (pid #{pid})" Process.wait(pid) puts "Completed" + if !$?.exited? || $?.exitstatus != 0 + abort "`#{cmd}` failed" + end end end end