better debugging of failed formula loading
Closes Homebrew/homebrew#21680. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
1540b3aadd
commit
6a8387ad4a
@ -43,6 +43,7 @@ class Formulary
|
||||
# have a "no such formula" message.
|
||||
raise
|
||||
rescue LoadError, NameError
|
||||
raise if ARGV.debug? # let's see the REAL error
|
||||
raise FormulaUnavailableError.new(name)
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user