raise instead of odie

Change based on review comments.
This commit is contained in:
Carlo Cabrera 2022-10-08 00:25:38 +08:00
parent 252e398b78
commit 4c2d903738
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -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)
odie "`target` should only be used for paths inside HOMEBREW_PREFIX!"
raise "`target` should only be used for paths inside HOMEBREW_PREFIX!"
end
"#{loader_path}/#{target.relative_path_from(source)}"