From 933129dcdba6f7707c04905ebf13591d7bf8c055 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Sat, 8 Oct 2022 11:43:43 +0800 Subject: [PATCH] Make error message clearer Co-authored-by: Bo Anderson --- Library/Homebrew/formula.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 3e8aed8e4d..006bc36ddf 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -1616,7 +1616,7 @@ class Formula sig { params(source: Pathname, target: Pathname).returns(String) } def rpath(source: bin, target: lib) unless target.to_s.start_with?(HOMEBREW_PREFIX) - raise "`target` should only be used for paths inside HOMEBREW_PREFIX!" + raise "rpath `target` should only be used for paths inside HOMEBREW_PREFIX!" end "#{loader_path}/#{target.relative_path_from(source)}"