raise instead of odie
Change based on review comments.
This commit is contained in:
parent
252e398b78
commit
4c2d903738
@ -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)}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user