We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a9b34b commit 757696cCopy full SHA for 757696c
lib/closure/compiler.rb
@@ -11,7 +11,7 @@ class Error < StandardError; end
11
class Compiler
12
13
attr_accessor :options
14
-
+
15
DEFAULT_OPTIONS = {
16
:warning_level => 'QUIET',
17
:language_in => 'ECMASCRIPT5'
@@ -58,7 +58,8 @@ def compile_files(files)
58
@options.merge!(:js => files)
59
60
begin
61
- result = `#{command} 2>&1`
+ redirect_stderr = "2>&1" if !Gem.win_platform?
62
+ result = `#{command} #{redirect_stderr}`
63
rescue Exception
64
raise Error, "compression failed: #{result}"
65
end
0 commit comments