From 265ab264fde4d07f391d7332514502870d2888b4 Mon Sep 17 00:00:00 2001 From: Shaun Jackman Date: Wed, 2 Jan 2019 10:12:12 -0800 Subject: [PATCH] ErrorDuringExecution: Fix wrong number of arguments Error: wrong number of arguments (given 1, expected 2) /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/exceptions.rb:548:in `block in initialize' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/exceptions.rb:557:in `map' --- Library/Homebrew/exceptions.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index 8100e57c08..5358065c59 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -539,7 +539,8 @@ class ErrorDuringExecution < RuntimeError s = "Failure while executing; `#{cmd.shelljoin.gsub(/\\=/, "=")}` exited with #{exitstatus}." unless [*output].empty? - format_output_line = lambda do |type, line| + format_output_line = lambda do |type_line| + type, line = *type_line if type == :stderr Formatter.error(line) else