From afa975bf26fbd23f2cc47fa3786e9881c5b44aa9 Mon Sep 17 00:00:00 2001 From: Shaun Jackman Date: Tue, 2 Oct 2018 15:13:15 -0700 Subject: [PATCH] keg_relocate: Fix Error: wrong number of arguments [Linux] Fix the error: Error: wrong number of arguments (given 1, expected 2) /projects/btl_scratch/sjackman/brew/Homebrew/Library/Homebrew/exceptions.rb:550:in `block in initialize' /projects/btl_scratch/sjackman/brew/Homebrew/Library/Homebrew/exceptions.rb:559:in `map' --- Library/Homebrew/extend/os/linux/keg_relocate.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/extend/os/linux/keg_relocate.rb b/Library/Homebrew/extend/os/linux/keg_relocate.rb index a678ba3e74..a06caea7a2 100644 --- a/Library/Homebrew/extend/os/linux/keg_relocate.rb +++ b/Library/Homebrew/extend/os/linux/keg_relocate.rb @@ -21,7 +21,7 @@ class Keg # Skip ELF files that do not have a .dynstr section. return if ["cannot find section .dynstr", "strange: no string table"].include?(old_rpath) unless $CHILD_STATUS.success? - raise ErrorDuringExecution.new(cmd_rpath, status: $CHILD_STATUS, output: [:stdout, old_rpath]) + raise ErrorDuringExecution.new(cmd_rpath, status: $CHILD_STATUS, output: [[:stderr, old_rpath]]) end rpath = old_rpath