dist/parser/server.rb in prettier-2.0.0.pre.rc2 vs dist/parser/server.rb in prettier-2.0.0.pre.rc3

- old
+ new

@@ -110,11 +110,12 @@ # Map each candidate connection method to a thread that will check if it works. candidates.map! do |candidate| Thread.new do Thread.current.report_on_exception = false - stdout, status = - Open3.capture2("#{candidate} #{information}", stdin_data: 'ping') + # We do not care about stderr here, so throw it away + stdout, _stderr, status = + Open3.capture3("#{candidate} #{information}", stdin_data: 'ping') candidate if JSON.parse(stdout) == 'pong' && status.exitstatus == 0 rescue StandardError # We don't actually care if this fails, because we'll just skip that # connection option.