mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: correct error message on precompile fail
This commit is contained in:
parent
314dca0ac1
commit
9cad925c67
1 changed files with 6 additions and 1 deletions
|
@ -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}'"
|
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
|
STDERR.puts cmd
|
||||||
`#{cmd} 2>&1`
|
result = `#{cmd} 2>&1`
|
||||||
|
unless $?.success?
|
||||||
|
STDERR.puts result
|
||||||
|
exit 1
|
||||||
|
end
|
||||||
|
|
||||||
|
result
|
||||||
end
|
end
|
||||||
|
|
||||||
def compress_ruby(from,to)
|
def compress_ruby(from,to)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue