From f55c2a4e8ec4f22125a161d3d90d5666c3d1bc8e Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Fri, 21 Jul 2023 20:09:00 -0700 Subject: [PATCH] Fix type error --- Library/Homebrew/formula.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index f944db7e3a..f1123f9246 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -2484,7 +2484,8 @@ class Formula super(paths, before, after, audit_result) rescue Utils::Inreplace::Error => e onoe e.to_s - raise BuildError.new(self, "inreplace", paths, {}) + args = paths.is_a?(Array) ? paths : [paths] + raise BuildError.new(self, "inreplace", args, {}) end protected