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'
This commit is contained in:
Shaun Jackman 2019-01-02 10:12:12 -08:00
parent 8ddaab7a40
commit 265ab264fd

View File

@ -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