better debugging of failed formula loading

Closes Homebrew/homebrew#21680.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Camillo Lugaresi 2013-08-04 20:38:26 -05:00 committed by Adam Vandenberg
parent 1540b3aadd
commit 6a8387ad4a

View File

@ -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