From 6325db9e37c4ea55ea82a8e6be767b119e403e87 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 23 Apr 2019 22:32:11 -0700 Subject: [PATCH] utils: fix frozen string usage in odeprecated. Fixes https://github.com/Homebrew/brew/issues/6053 --- Library/Homebrew/utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index e68d561789..be96044804 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -107,7 +107,7 @@ def odeprecated(method, replacement = nil, disable: false, disable_on: nil, call next unless match = line.match(HOMEBREW_TAP_PATH_REGEX) tap = Tap.fetch(match[:user], match[:repo]) - tap_message = "\nPlease report this to the #{tap} tap" + tap_message = +"\nPlease report this to the #{tap} tap" tap_message += ", or even better, submit a PR to fix it" if replacement tap_message << ":\n #{line.sub(/^(.*\:\d+)\:.*$/, '\1')}\n\n" break