From 9cad925c67ce0bbafbdb5ee3af0a656496d5a43f Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 22 Sep 2015 11:28:15 +1000 Subject: [PATCH] FIX: correct error message on precompile fail --- lib/tasks/assets.rake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake index bf90c98be0a..a6fc5d09ff8 100644 --- a/lib/tasks/assets.rake +++ b/lib/tasks/assets.rake @@ -102,8 +102,13 @@ def compress_node(from,to) cmd = "uglifyjs '#{assets_path}/#{from}' -p relative -c -m -o '#{to_path}' --source-map-root '#{source_map_root}' --source-map '#{assets_path}/#{to}.map' --source-map-url '#{source_map_url}'" STDERR.puts cmd - `#{cmd} 2>&1` + result = `#{cmd} 2>&1` + unless $?.success? + STDERR.puts result + exit 1 + end + result end def compress_ruby(from,to)