lib/handbrake/cli.rb in handbrake-0.2.0 vs lib/handbrake/cli.rb in handbrake-0.2.1

- old
+ new

@@ -204,11 +204,11 @@ def run(*more_args) @runner.run(arguments.push(*more_args)).tap do |result| unless result.status == 0 unless trace? - $stderr.puts result.output + $stderr.write result.output end raise "HandBrakeCLI execution failed (#{result.status.inspect})" end end end @@ -264,10 +264,10 @@ $stderr.puts "Spawning HandBrakeCLI using #{cmd.inspect}" if @cli.trace? IO.popen(cmd) do |io| while line = io.gets output << line - $stderr.puts(line.chomp) if @cli.trace? + $stderr.write(line) if @cli.trace? end end RunnerResult.new(output, $?) end end