Merge pull request #5470 from sjackman/ErrorDuringExecution

ErrorDuringExecution: Fix wrong number of arguments
This commit is contained in:
Shaun Jackman 2019-01-02 11:31:21 -08:00 committed by GitHub
commit 74b0adeb3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -539,7 +539,8 @@ class ErrorDuringExecution < RuntimeError
s = "Failure while executing; `#{cmd.shelljoin.gsub(/\\=/, "=")}` exited with #{exitstatus}." s = "Failure while executing; `#{cmd.shelljoin.gsub(/\\=/, "=")}` exited with #{exitstatus}."
unless [*output].empty? unless [*output].empty?
format_output_line = lambda do |type, line| format_output_line = lambda do |type_line|
type, line = *type_line
if type == :stderr if type == :stderr
Formatter.error(line) Formatter.error(line)
else else