rails/rails — pull request #7586 by route (2012-09-10 13:42:51+00:00)
Title: Rake assets:precompile shouldn't fail quietly.

Current realization refactored because there's no sense to capture output in quiet block.

I added commented block in code with my thoughts about this. Since rake task should be always invoked successfully we can check exit status and show to user original error instead of showing "Probably you didn't install JavaScript runtime". I'd like to use capture(:stderr) but it's not impossible because it doesn't reopen $std{out,err} and just reassigns it, that does impossible to capture subprocesses.