Fail hard if one of the asset compilation steps fails

This commit is contained in:
Calen Pennington
2013-04-26 15:24:33 -04:00
parent 8dc0df3e6b
commit a2aacce244

View File

@@ -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